Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Add support of PHP8 static return type for withers#36636
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
Add support of PHP8 static return type for withers#36636
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas left a comment• 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.
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.
Actually, I just realized the check should also verify that@return $this
is NOT present.
We really miss the$this
return type, which would provide much better clarity and would save us many annotations.
With the current state, we'll still have to use docblocks to help differentiate those two situations.
/cc@nikic FYI, in case this can be considered for PHP v8
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Compiler/AutowireRequiredMethodsPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Compiler/AutowireRequiredMethodsPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowireRequiredMethodsPassTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes_8.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
ab722c1
tod586092
CompareUpdated 🙂 |
d586092
to345a294
CompareI still have a problem on travis 7.2/php_extra=7.4, my check on PHP_VERSION_ID seems not working on this environment 🤔 Do I miss something specific to this environment ? |
You need to list the new file in |
src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
28cd280
to6cea5da
CompareUh oh!
There was an error while loading.Please reload this page.
6cea5da
to04fdf05
CompareUpdated 🙂 |
Thank you@l-vo. |
Uh oh!
There was an error while loading.Please reload this page.