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

[Validator] Un-deprecate passing an annotation reader to AnnotationLoader#51454

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

Conversation

@derrabus
Copy link
Member

QA
Branch?6.4
Bug fix?no
New feature?yes
Deprecations?no
TicketsFollow-up to#51425
LicenseMIT
Doc PRN/A

#51425 deprecated theAnnotationLoader class and its replacement already does not accept an annotation reader anymore. Thus, the deprecation of the constructor parameter is redundant, which is why I propose to take it back.

cc@alexandre-daubois

alexandre-daubois reacted with thumbs up emoji
protectedfunctioncreateAnnotationLoader():AnnotationLoader
{
returnnewAnnotationLoader();
returnnewAttributeLoader();
Copy link
Member

Choose a reason for hiding this comment

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

This does not match the return type

Copy link
MemberAuthor

@derrabusderrabusAug 22, 2023
edited
Loading

Choose a reason for hiding this comment

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

It does,AttributeLoader extendsAnnotationLoader. This class (AttributeLoaderTest) has two child classes which override this method. I have to keep the return type wide, otherwise I would break those child classes.

@alexandre-daubois
Copy link
Member

alexandre-daubois commentedAug 22, 2023
edited
Loading

Just for the record, I'm working on deprecating the serializer's AnnotationLoader too (and replacing it by an AttributeLoader). 🙂 I'll include this same undeprecation in the coming PR

derrabus reacted with thumbs up emoji

@derrabusderrabus merged commit991d81e intosymfony:6.4Aug 23, 2023
@derrabusderrabus deleted the improvement/undeprecate-annotation-reader-param branchAugust 23, 2023 11:31
This was referencedOct 21, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

5 participants

@derrabus@alexandre-daubois@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp