Symfony\Component\Form\Extension\Validator\ViolationMapper\ViolationMapper::matchChild
Tries to match the beginning of the property path at the current position against the children of the scope.
If a matching child is found, it is returned. Otherwise null is returned.
Signature
private function matchChild(FormInterface
$form,
PropertyPathIteratorInterface
$it )
Parameters
$form
— Symfony\Component\Form\FormInterface- The form to search.
$it
— Symfony\Component\PropertyAccess\PropertyPathIteratorInterface- The iterator at its current position.
Returns
- null|FormInterface
- The found match or null.