diff vendor/psy/psysh/src/Command/ParseCommand.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
line wrap: on
line diff
--- a/vendor/psy/psysh/src/Command/ParseCommand.php	Thu Feb 28 11:14:44 2019 +0000
+++ b/vendor/psy/psysh/src/Command/ParseCommand.php	Thu Feb 28 13:11:55 2019 +0000
@@ -97,7 +97,7 @@
 
         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 @@
     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 @@
         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 @@
      */
     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);
         }