Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / src / TabCompletion / Matcher / ClassMethodsMatcher.php
similarity index 93%
rename from vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassMethodsMatcher.php
rename to vendor/psy/psysh/src/TabCompletion/Matcher/ClassMethodsMatcher.php
index fa734fde981aece68588eaa69eb43ec7a8f1d120..e1b4053c1f2f663ab0d8c5d52c989cbdd66d8804 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.
@@ -24,7 +24,7 @@ class ClassMethodsMatcher extends AbstractMatcher
     /**
      * {@inheritdoc}
      */
-    public function getMatches(array $tokens, array $info = array())
+    public function getMatches(array $tokens, array $info = [])
     {
         $input = $this->getInput($tokens);
 
@@ -39,7 +39,7 @@ class ClassMethodsMatcher extends AbstractMatcher
         try {
             $reflection = new \ReflectionClass($class);
         } catch (\ReflectionException $re) {
-            return array();
+            return [];
         }
 
         $methods = $reflection->getMethods(\ReflectionMethod::IS_STATIC);