Closed vova07 closed 6 years ago
@berry-langerak @RickvdStaaij please review this PR! Thank you for your time!
@vova07 Thank you for finding the issue and fixing it! Will merge and release a new patch version! :+1:
Released in https://github.com/particle-php/Validator/releases/tag/v2.3.3
Thanks!
What?
This PR fix the bug in
Container::traverse()
method. We should ensure firstly that we are working with an array before checking for required key.When?
This is possible use case when we need a validator for nested array, but the input which should be validated contain a non-array value.
Checklist
Related
The PR which prove the bug: https://github.com/particle-php/Validator/pull/184