Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Replace get_class() calls by ::class#47401
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
I'm really not convinced that |
7bf01b2
to32eded8
Comparenicolas-grekas commentedAug 26, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I like the change personally. It gives a consistent syntax to get the class of something. Once used to it, we won't want to get back :) |
32eded8
to675601b
CompareThank you@deguif. |
This PR was squashed before being merged into the 6.2 branch.Discussion----------Replace get_class() calls by ::class| Q | A| ------------- | ---| Branch? | 6.2| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets || License | MIT| Doc PR |Replace `get_class()` by `::class`Commits-------675601b Replace get_class() calls by ::class
This PR was merged into the 6.4 branch.Discussion----------Replace `get_class()` calls by `::class`This change was made in symfony codebase in 2022symfony/symfony#47401.I think we can use same rule in our examplesCommits-------65599c4 Replace get_class() calls by ::class
This PR was merged into the 7.4 branch.Discussion----------Replace `get_class()` calls by `::class`| Q | A| ------------- | ---| Branch? | 7.4| Bug fix? | no| New feature? | no| Deprecations? | no| Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->| License | MITReplace `get_class()` by `::class`It was already done in past in#47401Commits-------e0a602b Replace get_class() calls by ::class
Replace
get_class()
by::class