-
Notifications
You must be signed in to change notification settings - Fork 470
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
TypeSpecifier: Narrow (bool) $expr
like $expr == true
#3380
Conversation
This pull request has been marked as ready for review. |
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.
Also implementing other casts would be cool as hell in a follow up PR :)
public function getFilePath(): string|false; | ||
} | ||
|
||
function bug7685(Reader $reader): void { |
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.
Extremely cool! But please follow the usual convention for regression tests - one file per issue, with bug-xxx.php
filename and namespace. I'm used to look for them in this format.
Thank you! |
…7. (#258) * Bump phpstan/phpstan to ^1.12 This includes a fix to issue phpstan/phpstan#7685 "Cast to (bool) on string|false !== false should end in non-empty-string" * Remove @phpstan-ignore-next-line from config/router.php Since phpstan v1.12.1 the related issue is fixed. phpstan/phpstan#7685 phpstan/phpstan-src#3380
closes phpstan/phpstan#8881
closes phpstan/phpstan#7685
closes phpstan/phpstan#6006
closes phpstan/phpstan#10528