-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Fix return types for PHP 8.1 #42260
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
Fix return types for PHP 8.1 #42260
Conversation
derrabus
commented
Jul 26, 2021
Q | A |
---|---|
Branch? | 4.4 |
Bug fix? | yes |
New feature? | no |
Deprecations? | no |
Tickets | Fix #42199, Fix #42231, Part of #41552 |
License | MIT |
Doc PR | N/A |
9c45520
to
38d60d1
Compare
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.
Did you use some tool to generate this? It'd be cool to document how we did so that others can do the same I their libs.
src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php
Show resolved
Hide resolved
No, this was manual work. I used PhpStorm to find all implementations of |
Would be nice if that did not have to be the case. CC @TomasVotruba |
@sebastianbergmann Depends how much time it took to do. If its < 30 minutes, than automation would take longer. |
I was definitely faster than 30 min. 😎 |
Sorry for the noise. |
@sebastianbergmann Thanks for the ping. If this would be something that every Symfony user has to change in their projects too, saved times is enourmous. |
38d60d1
to
1e171ca
Compare
This comment has been minimized.
This comment has been minimized.
@wouterj This PR already includes that change. Code reviews welcome. 🙂 |
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.
Oh, missed that. Looks good!
1b6624b
to
3eca446
Compare
@symfony/mergers Merging this PR would remove some noise from our CI. Any objections against it? |
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.
Im happy with this PR.
I dont know if this is complete or not. But if we missed some iterator we can fix them in a follow up PR.
Thanks everyone. ❤️ |
Follow-up for the 5.3 branch: #42379 |
This PR was merged into the 5.3 branch. Discussion ---------- Fix return types for PHP 8.1 | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | #41552 | License | MIT | Doc PR | N/A Follow-up of #42260. Commits ------- ab3c43f Fix return types for PHP 8.1
This PR was merged into the master branch. Discussion ---------- DX: test on PHP 8.1 Changes in `composer.json` must be reverted, this require: - [x] [justinrainbow/json-schema](https://github.com/justinrainbow/json-schema) to be released with the fix: jsonrainbow/json-schema#666 - [x] [mikey179/vfsstream](https://github.com/bovigo/vfsStream) new v1 version to be released - [x] [mikey179/vfsstream](https://github.com/bovigo/vfsStream) another version (with bovigo/vfsStream#261) to be released - [x] [symfony/symfony](https://github.com/symfony/symfony) new version (with symfony/symfony#42260) to be released Commits ------- a4358ec Test on PHP 8.1