You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct me if I'm wrong but I think the functions that expect a valid path (file_exists, is_readable, ...) always return false when an empty string is provided ( https://3v4l.org/TcecN ).
So when those functions return true we can say that the argument is a non-empty string.
Feature request
Correct me if I'm wrong but I think the functions that expect a valid path (
file_exists
,is_readable
, ...) always return false when an empty string is provided ( https://3v4l.org/TcecN ).So when those functions return true we can say that the argument is a non-empty string.
If my assumption is right it could help with situations like this:
https://phpstan.org/r/e9812010-b816-4a57-8fb1-036c6a6b177e
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is great! Thanks for your efforts!
The text was updated successfully, but these errors were encountered: