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?
to your account
When calling pathinfo on an empty string, the function returns an array with only 2 keys:
php -r 'var_dump(pathinfo(""));'
Command line code:1:
On the other hand, phpstan expects this array to always contain the "dirname" offset.
So phpstan throws an error if we check whether dirname exists or not:
PHPStan shouldn't detect an issue when we test whether the dirname offset exists.
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.