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
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:
Bug report
When calling pathinfo on an empty string, the function returns an array with only 2 keys:
Example:
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:
Code snippet that reproduces the problem
https://phpstan.org/r/fa3b7db7-5ce8-41d0-a63f-73742025ea3d
Expected output
PHPStan shouldn't detect an issue when we test whether the dirname offset exists.
The text was updated successfully, but these errors were encountered: