Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / src / TabCompletion / Matcher / ClassMethodDefaultParametersMatcher.php
similarity index 90%
rename from vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassMethodDefaultParametersMatcher.php
rename to vendor/psy/psysh/src/TabCompletion/Matcher/ClassMethodDefaultParametersMatcher.php
index 9b97e8b20c01c17e074a4c0754ffc300cf85a424..4e6025bb459ae3b047a0468b002b59bfb66dc62e 100644 (file)
@@ -3,7 +3,7 @@
 /*
  * This file is part of Psy Shell.
  *
- * (c) 2012-2017 Justin Hileman
+ * (c) 2012-2018 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
@@ -13,7 +13,7 @@ namespace Psy\TabCompletion\Matcher;
 
 class ClassMethodDefaultParametersMatcher extends AbstractDefaultParametersMatcher
 {
-    public function getMatches(array $tokens, array $info = array())
+    public function getMatches(array $tokens, array $info = [])
     {
         $openBracket    = array_pop($tokens);
         $functionName   = array_pop($tokens);
@@ -25,7 +25,7 @@ class ClassMethodDefaultParametersMatcher extends AbstractDefaultParametersMatch
             $reflection = new \ReflectionClass($class);
         } catch (\ReflectionException $e) {
             // In this case the class apparently does not exist, so we can do nothing
-            return array();
+            return [];
         }
 
         $methods = $reflection->getMethods(\ReflectionMethod::IS_STATIC);
@@ -36,7 +36,7 @@ class ClassMethodDefaultParametersMatcher extends AbstractDefaultParametersMatch
             }
         }
 
-        return array();
+        return [];
     }
 
     public function hasMatched(array $tokens)