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
When specifying a literal union type, a maximum of 8 literals can be provided. If more than 8 are provided then PHPStan does not trigger an error if an invalid value is used.
The example below shows that a function parameter that's typed with 9 or more literals in its union type does not trigger an error.
Bug report
When specifying a literal union type, a maximum of 8 literals can be provided. If more than 8 are provided then PHPStan does not trigger an error if an invalid value is used.
The example below shows that a function parameter that's typed with 9 or more literals in its union type does not trigger an error.
Code snippet that reproduces the problem
https://phpstan.org/r/37b77142-9d28-4ecd-b268-e4aa33cb169d
The text was updated successfully, but these errors were encountered: