X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fhttp-kernel%2FControllerMetadata%2FArgumentMetadataFactory.php;h=b46be7e8b70976b3d51dd1f393836282eaa135ac;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0424850e144c235aca7b4a85021f6bb36dc2e67d;hpb=9e65bae52407293a5182f19dc57b5628b09e92f4;p=yaffs-website diff --git a/vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php b/vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php index 0424850e1..b46be7e8b 100644 --- a/vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php +++ b/vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php @@ -49,9 +49,9 @@ final class ArgumentMetadataFactory implements ArgumentMetadataFactoryInterface { $arguments = array(); - if (is_array($controller)) { + if (\is_array($controller)) { $reflection = new \ReflectionMethod($controller[0], $controller[1]); - } elseif (is_object($controller) && !$controller instanceof \Closure) { + } elseif (\is_object($controller) && !$controller instanceof \Closure) { $reflection = (new \ReflectionObject($controller))->getMethod('__invoke'); } else { $reflection = new \ReflectionFunction($controller); @@ -105,7 +105,7 @@ final class ArgumentMetadataFactory implements ArgumentMetadataFactoryInterface * * @param \ReflectionParameter $parameter * - * @return null|string + * @return string|null */ private function getType(\ReflectionParameter $parameter, \ReflectionFunctionAbstract $function) {