Mercurial > hg > isophonics-drupal-site
diff vendor/psy/psysh/src/Command/ParseCommand.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 5fb285c0d0e3 |
children |
line wrap: on
line diff
--- a/vendor/psy/psysh/src/Command/ParseCommand.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/psy/psysh/src/Command/ParseCommand.php Thu Feb 28 13:21:36 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); }