-
-
Notifications
You must be signed in to change notification settings - Fork 947
Wrong detection of the parameter data type as mixed #12207
Copy link
Copy link
Open
Labels
Milestone
Description
Bug report
When the assignment into variable is a string, the PHPStan correctly detect, that variable is type of string.
But when the variable is declared as a part of the array definition (for the future usage in the same array), the PHPStan detect the type of the variable as mixed
Code snippet that reproduces the problem
Expected output
No error should be here
Did PHPStan help you today? Did it make you happy in any way?
No response
Reactions are currently unavailable