Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / ParserFactory.php
index 21427483f1118ccc0330a4b1135a876fe0ef1234..263da2022b7586c06dabfc90c1739854f2ad941d 100644 (file)
@@ -44,7 +44,7 @@ class ParserFactory
      */
     public function hasKindsSupport()
     {
-        return class_exists('PhpParser\ParserFactory');
+        return \class_exists('PhpParser\ParserFactory');
     }
 
     /**
@@ -55,7 +55,7 @@ class ParserFactory
     public function getDefaultKind()
     {
         if ($this->hasKindsSupport()) {
-            return version_compare(PHP_VERSION, '7.0', '>=') ? static::ONLY_PHP7 : static::ONLY_PHP5;
+            return \version_compare(PHP_VERSION, '7.0', '>=') ? static::ONLY_PHP7 : static::ONLY_PHP5;
         }
     }
 
@@ -73,11 +73,11 @@ class ParserFactory
 
             $kind = $kind ?: $this->getDefaultKind();
 
-            if (!in_array($kind, static::getPossibleKinds())) {
+            if (!\in_array($kind, static::getPossibleKinds())) {
                 throw new \InvalidArgumentException('Unknown parser kind');
             }
 
-            $parser = $originalFactory->create(constant('PhpParser\ParserFactory::' . $kind));
+            $parser = $originalFactory->create(\constant('PhpParser\ParserFactory::' . $kind));
         } else {
             if ($kind !== null) {
                 throw new \InvalidArgumentException('Install PHP Parser v2.x to specify parser kind');