diff vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children
line wrap: on
line diff
--- a/vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php	Thu Feb 28 13:21:36 2019 +0000
@@ -47,11 +47,11 @@
      */
     public function createArgumentMetadata($controller)
     {
-        $arguments = array();
+        $arguments = [];
 
-        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 @@
      *
      * @param \ReflectionParameter $parameter
      *
-     * @return null|string
+     * @return string|null
      */
     private function getType(\ReflectionParameter $parameter, \ReflectionFunctionAbstract $function)
     {