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
AFAIK shuffle() doesn't return the shuffled array, but changes it in-place. The extension isn't applicable here, instead it needs to be hardcoded in NodeScopeResolver.
Bug report
When an array is passed to
shuffle()
it gets reindexed from 0. PHPStan does not detect this.Code snippet that reproduces the problem
Expected output
shuffle()
should be aware that the array that's passed to it gets reindexed from 0.Did PHPStan help you today? Did it make you happy in any way?
Always :)
The text was updated successfully, but these errors were encountered: