protected function collectAssertException(&$exceptions, $validator, $input) { try { $validator->assert($input); } catch (ValidationException $e) { $exceptions[] = $e; } }