Skip to content
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

FP: is_dir | Negated boolean expression is always true. #4816

Closed
voku opened this issue Apr 6, 2021 · 2 comments
Closed

FP: is_dir | Negated boolean expression is always true. #4816

voku opened this issue Apr 6, 2021 · 2 comments

Comments

@voku
Copy link
Contributor

voku commented Apr 6, 2021

Bug report

"You should also note that PHP doesn't cache information about non-existent files. " - https://www.php.net/manual/en/function.clearstatcache.php

... so that the condition in the example is not always true.

Code snippet that reproduces the problem

https://phpstan.org/r/1aaab4dd-4b01-4d50-9b60-83e722cd90ec

Expected output

no error

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@1eaef04

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants