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

[Config][ReflectionClassResource] Handle parameters with undefined constant as their default values#34560

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

@fancyweb
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets#34053
LicenseMIT
Doc PR-

Basically we can fix this bug by "reimplementing" php src way of building the __toString() of the method except that we avoid to call the undefined constant. Obviously we cannot invalidate the resource if the value of the constant changes since we never knew it. However, it's still better than now.

m-vo reacted with hooray emoji
@fancywebfancywebforce-pushed theconfig-reflection-class-undef-constant branch from6ec8085 to6ea7b07CompareNovember 23, 2019 22:53
@nicolas-grekasnicolas-grekas added this to the3.4 milestoneNov 24, 2019
@nicolas-grekas
Copy link
Member

Some tests fail, but this looks promising!

@fancywebfancywebforce-pushed theconfig-reflection-class-undef-constant branch 3 times, most recently from4dbcaa4 toab35a71CompareNovember 29, 2019 09:36
@fancyweb
Copy link
ContributorAuthor

I fixed the code for PHP <= 7.0.

@fancywebfancywebforce-pushed theconfig-reflection-class-undef-constant branch 2 times, most recently from13231fc tob955f83CompareNovember 29, 2019 15:45
@fancywebfancywebforce-pushed theconfig-reflection-class-undef-constant branch fromb955f83 to8de2a22CompareNovember 29, 2019 16:04
@nicolas-grekas
Copy link
Member

Thank you@fancyweb.

nicolas-grekas added a commit that referenced this pull requestNov 29, 2019
…ndefined constant as their default values (fancyweb)This PR was merged into the 3.4 branch.Discussion----------[Config][ReflectionClassResource] Handle parameters with undefined constant as their default values| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       |#34053| License       | MIT| Doc PR        | -Basically we can fix this bug by "reimplementing" php src way of building the __toString() of the method except that we avoid to call the undefined constant. Obviously we cannot invalidate the resource if the value of the constant changes since we never knew it. However, it's still better than now.Commits-------8de2a22 [Config][ReflectionClassResource] Handle parameters with undefined constant as their default values
@nicolas-grekasnicolas-grekas merged commit8de2a22 intosymfony:3.4Nov 29, 2019
@fancywebfancyweb deleted the config-reflection-class-undef-constant branchNovember 29, 2019 16:06
This was referencedDec 1, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@stofstofstof left review comments

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@fancyweb@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp