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
i expected no No issues! but instead Psalm reported mixed type for second argument
even though if i supplied the second parameter through upacked arguments it would result in PHP Fatal error and Psalm detects
The text was updated successfully, but these errors were encountered:
It's possibly a flaw in the improvement I made here: #7348 or something very close
This is admittedly a pretty niche case, unpacking a sealed array then using a named parameter is a little weird, but as long as the array is sealed, it should be possible to adapt the code by both counting the elements in the array and deducting the named elements
when function is called with unpacked arguments and named arguments Psalm ignores the named arguments
https://psalm.dev/r/018f0616de
i expected no
No issues!
but instead Psalm reported mixed type for second argumenteven though if i supplied the second parameter through upacked arguments it would result in PHP Fatal error and Psalm detects
The text was updated successfully, but these errors were encountered: