phpstan assumes file_exists always returns the same result #10840
-
Consider the following code and failure: Another case is when (before the final My current solution is to move the top file_exists to the caller: Edit: this also applies to similar functions, such as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to call clearstatcachw between the calls: https://www.php.net/manual/en/function.clearstatcache.php |
Beta Was this translation helpful? Give feedback.
You need to call clearstatcachw between the calls: https://www.php.net/manual/en/function.clearstatcache.php