-
Notifications
You must be signed in to change notification settings - Fork 506
Respect asserts and throws on pure functions that return void #3719
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
base: 2.1.x
Are you sure you want to change the base?
Respect asserts and throws on pure functions that return void #3719
Conversation
bde30fc
to
1fd854f
Compare
This pull request has been marked as ready for review. |
5335a05
to
8af8b0b
Compare
3654e52
to
36f05c7
Compare
c743db0
to
640a0ba
Compare
{ | ||
$this->treatPhpDocTypesAsCertain = true; | ||
$this->analyse([__DIR__ . '/data/bug-12048.php'], []); | ||
$this->analyse([__DIR__ . '/data/bug-12224.php'], [ |
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.
I don't get it, why did you delete this test? You should only add a new test.
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.
not sure why i did that. Reverted the delete
03b9ce6
to
abee33d
Compare
674f8aa
to
5a5ee0f
Compare
5a5ee0f
to
23f5257
Compare
Fixes some of the problems from phpstan/phpstan#12224
This should now be fixed: https://phpstan.org/r/852dd5b6-e76c-41ed-a0fb-7b1a46b0900f