laminas-validator icon indicating copy to clipboard operation
laminas-validator copied to clipboard

No default value for EnumCase Validator

Open Buzka91 opened this issue 1 year ago • 3 comments

Bug Report

Q A
Version(s) >=3.0.0

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

Buzka91 avatar Dec 11 '24 09:12 Buzka91