You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #47672 Leverage First-class callable syntax (tigitz)
This PR was merged into the 6.2 branch.
Discussion
----------
Leverage First-class callable syntax
| Q | A
| ------------- | ---
| Branch? | 6.2
| Bug fix? | no
| New feature? | no
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | -
| License | MIT
| Doc PR | -
### Rationale
https://wiki.php.net/rfc/first_class_callable_syntax
Mainly:
> The advantage is that the new syntax is accessible to static analysis, and respects the scope at the point where the callable is created.
I'd argue that it also improves readability and IDE color syntax also helps:

I've manually reviewed each changes and discarded some of them where `[Foo::class, 'method']` was intended to be tested with this specific syntax
Commits
-------
26d9ce9520 Leverage First-class callable syntax
0 commit comments