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
As you can see from the example i have pulled out of the Laravel source, when using partition a two element array is return which is typically destructured to get the desired values, however phpstan fails to understand it and sets the type to mixed
Bug report
As you can see from the example i have pulled out of the Laravel source, when using
partition
a two element array is return which is typically destructured to get the desired values, however phpstan fails to understand it and sets the type to mixedCode snippet that reproduces the problem
https://phpstan.org/r/eb33c0aa-469a-491a-9fc8-1138a9c923ad
Expected output
i have added
assertType
calls in the example for my expected outputDid PHPStan help you today? Did it make you happy in any way?
you know!
The text was updated successfully, but these errors were encountered: