-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Remove ReturnTypeWillChange
#42378
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
Remove ReturnTypeWillChange
#42378
Conversation
We should probably wait until #42379 has been merged up as well. |
#42379 has been merged. Please include the relevant changes here as well. |
b5ea60c
to
8b2363b
Compare
Done. |
@@ -601,12 +601,11 @@ public function in(string|array $dirs) | |||
* | |||
* This method implements the IteratorAggregate interface. | |||
* | |||
* @return \Iterator|SplFileInfo[] An iterator |
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.
we might want to fix those phpdocs in lower branches?
8b2363b
to
a419f80
Compare
The failing test is fixed and backported as #42384. I'll take care of the Psalm failures later. |
This PR was merged into the 4.4 branch. Discussion ---------- [HttpFoundation] Fix broken mock | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Backport from #42378. This PR fixes a couple of mocked methods that currently return `null` although a real implementation would never do that. Commits ------- af37c64 Fix broken mock
e76842e
to
ef2ab70
Compare
PR is ready again. |
src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php
Outdated
Show resolved
Hide resolved
Signed-off-by: Alexander M. Turek <me@derrabus.de>
ef2ab70
to
2d3e1ed
Compare
Thank you @derrabus. |
This PR removed the
ReturnTypeWillChange
attribute everywhere by adding actual return types.