Immediately called function without implicit throw broken for first class callable#3016
Merged
ondrejmirtes merged 3 commits intophpstan:1.11.xfrom Apr 19, 2024
Conversation
fd32899 to
71b4ffa
Compare
Member
|
Fixed, thanks |
Contributor
Author
|
Looks like this fix didnt make it to stable 1.11, why? |
Member
|
The log here in this PR says:
And when I click on that commit it shows it's part of 1.11.0. What's the problem? |
Contributor
Author
|
It still behaves the old way here: https://github.com/shipmonk-rnd/phpstan-rules/pull/237/files#diff-0a900f4844a6aa21b30f50de6ce5b92fb31bbf3fbf928757e409d06584d89d53R243 |
Contributor
Author
|
My bad, the behaviour stays only when implicitThrows is disabled. It is changed in 1.11 for default setup (implicitThrows being true). Ref: shipmonk-rnd/phpstan-rules#239 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Looks like it got broken in this commit. Checked by:
Commits around that: https://github.com/phpstan/phpstan-src/commits/1.11.x/?after=f280c25a28e8fdf9853165324e8672c06065f8a8+139