Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / Command / ParseCommand.php
index 5fe36d126a5daafc187244f9e92ca430753a6acb..3f3286e8afb758ecfefc127d4eb636a1050ddf47 100644 (file)
@@ -97,7 +97,7 @@ class ParseCommand extends Command implements ContextAware, PresenterAware
 
         if ($this->parserFactory->hasKindsSupport()) {
             $msg = 'One of PhpParser\\ParserFactory constants: '
-                . implode(', ', ParserFactory::getPossibleKinds())
+                . \implode(', ', ParserFactory::getPossibleKinds())
                 . " (default is based on current interpreter's version).";
             $defaultKind = $this->parserFactory->getDefaultKind();
 
@@ -128,7 +128,7 @@ HELP
     protected function execute(InputInterface $input, OutputInterface $output)
     {
         $code = $input->getArgument('code');
-        if (strpos('<?', $code) === false) {
+        if (\strpos('<?', $code) === false) {
             $code = '<?php ' . $code;
         }
 
@@ -153,7 +153,7 @@ HELP
         try {
             return $parser->parse($code);
         } catch (\PhpParser\Error $e) {
-            if (strpos($e->getMessage(), 'unexpected EOF') === false) {
+            if (\strpos($e->getMessage(), 'unexpected EOF') === false) {
                 throw $e;
             }
 
@@ -171,7 +171,7 @@ HELP
      */
     private function getParser($kind = null)
     {
-        if (!array_key_exists($kind, $this->parsers)) {
+        if (!\array_key_exists($kind, $this->parsers)) {
             $this->parsers[$kind] = $this->parserFactory->createParser($kind);
         }