-
-
Notifications
You must be signed in to change notification settings - Fork 934
Open
phpstan/phpstan-src
#4234Labels
Description
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!
herndlm