-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
PHP CS Fixer: enable static_lambda #62783
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 8.1
Are you sure you want to change the base?
Conversation
nicolas-grekas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one, one less thing to be patched randomly :)
This PR was submitted for the 7.4 branch but it was merged into the 7.3 branch instead. Discussion ---------- [JsonPath] fix calling non-static method statically | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes-ish | New feature? | no <!-- if yes, also update src/**/CHANGELOG.md --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Issues | Fix compiler complaints | License | MIT if [lambda would be declared as static](#62783), calling non-static method from it would fail with the following error: > Error: Non-static method Symfony\Component\JsonPath\JsonCrawler::normalizeStorage() cannot be called statically let's not call non-static method statically. Commits ------- 22db41e src/Symfony/Component/JsonPath - fix
|
most component looks ready. few components needs more zoom-in and will take some time for me to catch up there. For now, reverted those componentss in this PR (last commits). perhaps, we can merge all the rest to avoid conflicts , @nicolas-grekas ?
|
inspired by https://github.com/symfony/symfony/pull/62762/changes#r2622285457
DRAFT, as not applied to whole repo, only to one bridge to show example outpuut.
if you like the change, i can apply to whole repo
I suggest to see what will fail, revert such package, merge the rest.
then, handle other packages in separated PRs