Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Serializer] Deprecate support for abstract uid denormalization in UidNormalizer#44721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@fancyweb
Copy link
Contributor

QA
Branch?6.1
Bug fix?no
New feature?no
Deprecations?yes
Tickets-
LicenseMIT
Doc PR-

Continuation of#44600. All abstract classes should not be denormalized to Uuid::class. We need a concrete class. Instead of penalizing everyone with reflection in supportsDenormalization(), let's just bubble up the PHP \Error (we are going to do the same in UidValueResolver).

@nicolas-grekas
Copy link
Member

(rebase needed)

@fancywebfancywebforce-pushed theserializer/deprec-abstract-uid branch from09000e1 to8661042CompareDecember 27, 2021 09:13
@fancywebfancywebforce-pushed theserializer/deprec-abstract-uid branch 2 times, most recently from38431ca to4075944CompareDecember 31, 2021 08:04
@fancywebfancywebforce-pushed theserializer/deprec-abstract-uid branch from4075944 tob0c07f8CompareJanuary 13, 2022 16:59
Comment on lines +11 to +28
* Deprecate supporting denormalization for`AbstractUid` in`UidNormalizer`, use one of`AbstractUid` child class instead
* Deprecate denormalizing to an abstract class in`UidNormalizer`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

to me this signals the same deprecation

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There is one deprecation forsupportsDenormalization() that will return false instead of true forAbstractUid::class specifically.
And another fordenormalize() that will throw an\Error if the class is abstract (instead of fallbacking toUuid::class).

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

rebase needed

@fancywebfancywebforce-pushed theserializer/deprec-abstract-uid branch 2 times, most recently from793a7b2 to6ed7a68CompareFebruary 14, 2022 09:09
@fancywebfancywebforce-pushed theserializer/deprec-abstract-uid branch from6ed7a68 to6fc4287CompareFebruary 23, 2022 13:12
@nicolas-grekas
Copy link
Member

Thank you@fancyweb.

@nicolas-grekasnicolas-grekas merged commita14eb3f intosymfony:6.1Feb 23, 2022
@fancywebfancyweb deleted the serializer/deprec-abstract-uid branchFebruary 23, 2022 13:21
@fabpotfabpot mentioned this pull requestApr 15, 2022
nicolas-grekas added a commit that referenced this pull requestJun 5, 2023
…(fancyweb)This PR was merged into the 7.0 branch.Discussion----------[Serializer] Remove abstract uid denormalization code| Q             | A| ------------- | ---| Branch?       | 7.0| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Removes the code that was deprecated in#44721Commits-------79028f9 [Serializer] Remove abstract uid denormalization code
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@stofstofstof left review comments

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

+1 more reviewer

@ro0NLro0NLro0NL left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.1

Development

Successfully merging this pull request may close these issues.

5 participants

@fancyweb@nicolas-grekas@stof@ro0NL@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp