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 have a model where one column is represented as a PHP Enum (string backed enum with currently only one possible option), declared via $casts, but PHPStan reports the type incorrectly as mixed.
I get now the error message Match expression does not handle remaining value: mixed and when I use \PHPStan\dumpType($m->type) I get Dumped type: mixed instead of the expected MyModelType.
It seems like this only starts happening since I upgraded from 2.3.0 -> 2.3.4 but I'm not 100% sure about that.
The text was updated successfully, but these errors were encountered:
--level
used: 8Description
I have a model where one column is represented as a PHP Enum (string backed enum with currently only one possible option), declared via $casts, but PHPStan reports the type incorrectly as
mixed
.Laravel code where the issue was found
I get now the error message
Match expression does not handle remaining value: mixed
and when I use\PHPStan\dumpType($m->type)
I getDumped type: mixed
instead of the expectedMyModelType
.It seems like this only starts happening since I upgraded from 2.3.0 -> 2.3.4 but I'm not 100% sure about that.
The text was updated successfully, but these errors were encountered: