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
Its a similar issue to isset but instead the ?? (Null coalesce operator) is used: #8068
Expected output
No error should be shown
Did PHPStan help you today? Did it make you happy in any way?
We are shipping phpstan as part of our Sulu CMS skeleton since last 2.5 minor version to improve with rector the upgrade process and code quality of all Sulu based projects.
The text was updated successfully, but these errors were encountered:
This is an error caused by explicit mixed, because offset access to explicit mixed is not allowed.
The linked issue has a slightly different situation, It had offset access (false)no | (constant array)yes.
The only permitted operation for explicit mixed is passing to another mixed, so the solution is
Bug report
The
??
usage on a nested array which parent key does not exist throwns an error but I would not expect it e.g.:Code snippet that reproduces the problem
https://phpstan.org/r/42618f11-503b-4ad6-ae43-0a2d642deff8
https://3v4l.org/hdYaB
Its a similar issue to
isset
but instead the??
(Null coalesce operator) is used: #8068Expected output
No error should be shown
Did PHPStan help you today? Did it make you happy in any way?
We are shipping
phpstan
as part of ourSulu CMS
skeleton since last 2.5 minor version to improve with rector the upgrade process and code quality of all Sulu based projects.The text was updated successfully, but these errors were encountered: