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

[Router] Skip anonymous classes when loading annotated routes#25801

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

Closed

Conversation

@pierredup
Copy link
Contributor

@pierreduppierredup commentedJan 15, 2018
edited
Loading

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#25796
LicenseMIT
Doc PR

Skip any usage of anonymous classes when parsing files inAnnotationFileLoader

@pierreduppierredupforce-pushed theanonymous-class-in-trait branch 3 times, most recently frome016c78 to91c878eCompareJanuary 15, 2018 20:40
@pierreduppierredupforce-pushed theanonymous-class-in-trait branch frome6cb583 to3a272b2CompareJanuary 16, 2018 06:57
// Skip usage of ::class constant
$isClassConstant =false;
// Skip usage of ::class constant and anonymous classes
$isValidClass =true;

Choose a reason for hiding this comment

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

Not sure about this variable name ->$isValidClass because an anonymous class is a valid class.

derrabus reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I was mostly trying to avoid usingisClassConstantOrAnonymousClass andisValidClass is the first thing that came to mind. I'll change it to something more reasonable

@nicolas-grekasnicolas-grekas added this to the2.7 milestoneJan 16, 2018
@nicolas-grekas
Copy link
Member

Thank you@pierredup.

nicolas-grekas added a commit that referenced this pull requestJan 16, 2018
…tes (pierredup)This PR was squashed before being merged into the 2.7 branch (closes#25801).Discussion----------[Router] Skip anonymous classes when loading annotated routes| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#25796| License       | MIT| Doc PR        |Skip any usage of anonymous classes when parsing files in `AnnotationFileLoader`Commits-------d76a545 [Router] Skip anonymous classes when loading annotated routes
@xabbuhxabbuh closed thisJan 16, 2018
@pierreduppierredup deleted the anonymous-class-in-trait branchJanuary 16, 2018 17:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

@stofstofstof approved these changes

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

6 participants

@pierredup@nicolas-grekas@javiereguiluz@stof@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp