Skip to content

Conversation

@KhadaRoss
Copy link

… get provided

When i was using an InputFilter with a nested CollectionInputFilter i saw that this ValidationResult tries to use CollectionFilter::getName, which causes an error because the property $invalidInputs of the CollectionInputFilter can also return InputFilterInterface[]

/**
 * @var InputInterface[]|InputFilterInterface[]
 */
protected $invalidInputs;

however this ValidationResult only works if you get InputInterface[].
fortunately the index variable of this foreach always contains the name that is needed for this ValidationResult.

the interfaces dont seem to fit together perfectly, see laminas/laminas-inputfilter#22 by func0der

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant