Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/validator/Validator/TraceableValidator.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/vendor/symfony/validator/Validator/TraceableValidator.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/validator/Validator/TraceableValidator.php Thu Feb 28 13:21:36 2019 +0000 @@ -21,7 +21,7 @@ class TraceableValidator implements ValidatorInterface { private $validator; - private $collectedData = array(); + private $collectedData = []; public function __construct(ValidatorInterface $validator) { @@ -38,7 +38,7 @@ public function reset() { - $this->collectedData = array(); + $this->collectedData = []; } /** @@ -92,11 +92,11 @@ $name = str_replace('\\', '/', $file); $name = substr($name, strrpos($name, '/') + 1); - $this->collectedData[] = array( + $this->collectedData[] = [ 'caller' => compact('name', 'file', 'line'), 'context' => compact('value', 'constraints', 'groups'), 'violations' => iterator_to_array($violations), - ); + ]; return $violations; }