Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix-validation-result] Fix validation result if nested input filters… #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant