Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/Argument/IteratorArgument.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 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
44 */ | 44 */ |
45 public function setValues(array $values) | 45 public function setValues(array $values) |
46 { | 46 { |
47 foreach ($values as $k => $v) { | 47 foreach ($values as $k => $v) { |
48 if (null !== $v && !$v instanceof Reference) { | 48 if (null !== $v && !$v instanceof Reference) { |
49 throw new InvalidArgumentException(sprintf('An IteratorArgument must hold only Reference instances, "%s" given.', is_object($v) ? get_class($v) : gettype($v))); | 49 throw new InvalidArgumentException(sprintf('An IteratorArgument must hold only Reference instances, "%s" given.', \is_object($v) ? \get_class($v) : \gettype($v))); |
50 } | 50 } |
51 } | 51 } |
52 | 52 |
53 $this->values = $values; | 53 $this->values = $values; |
54 } | 54 } |