Closed vaclavvanik closed 2 years ago
@vaclavvanik The related DocBlock contains:
But I don't know why it is ignored.
If it is bug, I can create PR. If it is expected behavior I can create PR with new ContextCollectionInputFilter which will pass $context to nested input filter.
Another input filter class is not needed. Please create a pull request and update the class Laminas\InputFilter\CollectionInputFilter
directly. The tests should show if there are any side effects.
Thanks in advance! 👍
CollectionInputFilter::isValid($context = null) does not pass $context variable to nested input filter. I do not know if it is expected behavior.
I need to get whole input filter $context from my nested validators. If it is bug, I can create PR. If it is expected behavior I can create PR with new ContextCollectionInputFilter which will pass $context to nested input filter.