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
------ --------------------------------------------------------------------------------------------------------------------------------------------
Line OrderController.php
------ --------------------------------------------------------------------------------------------------------------------------------------------
24 Strict comparison using === between string and App\Enums\Status::PAID will always evaluate to false.
💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon.
------ --------------------------------------------------------------------------------------------------------------------------------------------
In phpstan 1.12.0 everything works fine
The text was updated successfully, but these errors were encountered:
Description
After upgrade phpstan to a version greater than 1.12.0 casted enums, array, customs casts are not treated as casted type
Laravel code where the issue was found
If I run
phpstan output:
In phpstan 1.12.0 everything works fine
The text was updated successfully, but these errors were encountered: