summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php')
-rw-r--r--vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php b/vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php
index 0424850e14..6559c9db13 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);