Hi,
There has been a recent update to laminas-validator in_array which is now failing to validate strings.
If strict is set to false, the validator works fine, but if it is set to true, it doesn’t work in version 2.14.0, the previous version works as expected.
I am using PHP 7.3
Is there a bug in the validator?
I am using api-tools and I have the following code in the module config that was created with the UI:
4 => [
'required' => true,
'validators' => [
0 => [
'name' => \Laminas\Validator\InArray::class,
'options' => [
'haystack' => [
0 => 'Y',
1 => 'N',
],
'strict' => true,
],
],
],