Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/dependency-injection/Compiler/ResolveNamedArgumentsPass.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
69 throw new InvalidArgumentException(sprintf('Invalid service "%s": the value of argument "%s" of method "%s()" must be null, an instance of %s or an instance of %s, %s given.', $this->currentId, $key, $class !== $this->currentId ? $class.'::'.$method : $method, Reference::class, Definition::class, \gettype($argument))); | 69 throw new InvalidArgumentException(sprintf('Invalid service "%s": the value of argument "%s" of method "%s()" must be null, an instance of %s or an instance of %s, %s given.', $this->currentId, $key, $class !== $this->currentId ? $class.'::'.$method : $method, Reference::class, Definition::class, \gettype($argument))); |
70 } | 70 } |
71 | 71 |
72 $typeFound = false; | 72 $typeFound = false; |
73 foreach ($parameters as $j => $p) { | 73 foreach ($parameters as $j => $p) { |
74 if (!array_key_exists($j, $resolvedArguments) && ProxyHelper::getTypeHint($r, $p, true) === $key) { | 74 if (!\array_key_exists($j, $resolvedArguments) && ProxyHelper::getTypeHint($r, $p, true) === $key) { |
75 $resolvedArguments[$j] = $argument; | 75 $resolvedArguments[$j] = $argument; |
76 $typeFound = true; | 76 $typeFound = true; |
77 } | 77 } |
78 } | 78 } |
79 | 79 |