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
@gsteel
I think the error reporting refers to the problem of the undefined index. Shouldn't there be a check that this is available? Maybe with an exception for this problem.
Ah, I see - we'd be trading undefined index for a psalm error I think, as the options have a well-defined expected shape and your static analysis tooling should alert you to that.
Bug Report
Summary
In EnumCase Validator there is no optional value for
enum
key.Current behavior
Undefined index enum
How to reproduce
Do not pass enum in option array.
Expected behavior
Fix in EnumCase Validator to set default value, which will lead to throw exception.
--edit
Same as in InArray Validator
The text was updated successfully, but these errors were encountered: