X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fdependency-injection%2FCompiler%2FResolveNamedArgumentsPass.php;fp=vendor%2Fsymfony%2Fdependency-injection%2FCompiler%2FResolveNamedArgumentsPass.php;h=90cf64adbec35dec57ecfb77b1a8a6382aeea238;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=cd6bb6fe8c58a4da6ef309464c0f235db24cf847;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/vendor/symfony/dependency-injection/Compiler/ResolveNamedArgumentsPass.php b/vendor/symfony/dependency-injection/Compiler/ResolveNamedArgumentsPass.php index cd6bb6fe8..90cf64adb 100644 --- a/vendor/symfony/dependency-injection/Compiler/ResolveNamedArgumentsPass.php +++ b/vendor/symfony/dependency-injection/Compiler/ResolveNamedArgumentsPass.php @@ -41,7 +41,7 @@ class ResolveNamedArgumentsPass extends AbstractRecursivePass $resolvedArguments = array(); foreach ($arguments as $key => $argument) { - if (is_int($key)) { + if (\is_int($key)) { $resolvedArguments[$key] = $argument; continue; } @@ -65,7 +65,7 @@ class ResolveNamedArgumentsPass extends AbstractRecursivePass } if (null !== $argument && !$argument instanceof Reference && !$argument instanceof Definition) { - 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))); + 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))); } $typeFound = false;