X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fdependency-injection%2FCompiler%2FCheckArgumentsValidityPass.php;h=feb05c0499494aa4e1f6fc853cd00875ea347105;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=7f032058ab139e649344e9cf8d3ed66a9a056412;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/symfony/dependency-injection/Compiler/CheckArgumentsValidityPass.php b/vendor/symfony/dependency-injection/Compiler/CheckArgumentsValidityPass.php index 7f032058a..feb05c049 100644 --- a/vendor/symfony/dependency-injection/Compiler/CheckArgumentsValidityPass.php +++ b/vendor/symfony/dependency-injection/Compiler/CheckArgumentsValidityPass.php @@ -41,7 +41,7 @@ class CheckArgumentsValidityPass extends AbstractRecursivePass $i = 0; foreach ($value->getArguments() as $k => $v) { if ($k !== $i++) { - if (!is_int($k)) { + if (!\is_int($k)) { $msg = sprintf('Invalid constructor argument for service "%s": integer expected but found string "%s". Check your service definition.', $this->currentId, $k); $value->addError($msg); if ($this->throwExceptions) { @@ -63,7 +63,7 @@ class CheckArgumentsValidityPass extends AbstractRecursivePass $i = 0; foreach ($methodCall[1] as $k => $v) { if ($k !== $i++) { - if (!is_int($k)) { + if (!\is_int($k)) { $msg = sprintf('Invalid argument for method call "%s" of service "%s": integer expected but found string "%s". Check your service definition.', $methodCall[0], $this->currentId, $k); $value->addError($msg); if ($this->throwExceptions) {