Mercurial > hg > cmmr2012-drupal-site
diff vendor/symfony/process/PhpProcess.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/symfony/process/PhpProcess.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/symfony/process/PhpProcess.php Thu Feb 28 13:11:55 2019 +0000 @@ -16,9 +16,9 @@ /** * PhpProcess runs a PHP script in an independent process. * - * $p = new PhpProcess('<?php echo "foo"; ?>'); - * $p->run(); - * print $p->getOutput()."\n"; + * $p = new PhpProcess('<?php echo "foo"; ?>'); + * $p->run(); + * print $p->getOutput()."\n"; * * @author Fabien Potencier <fabien@symfony.com> */ @@ -37,9 +37,9 @@ if (false === $php = $executableFinder->find(false)) { $php = null; } else { - $php = array_merge(array($php), $executableFinder->findArguments()); + $php = array_merge([$php], $executableFinder->findArguments()); } - if ('phpdbg' === PHP_SAPI) { + if ('phpdbg' === \PHP_SAPI) { $file = tempnam(sys_get_temp_dir(), 'dbg'); file_put_contents($file, $script); register_shutdown_function('unlink', $file); @@ -64,12 +64,12 @@ /** * {@inheritdoc} */ - public function start(callable $callback = null/*, array $env = array()*/) + public function start(callable $callback = null/*, array $env = []*/) { if (null === $this->getCommandLine()) { throw new RuntimeException('Unable to find the PHP executable.'); } - $env = 1 < func_num_args() ? func_get_arg(1) : null; + $env = 1 < \func_num_args() ? func_get_arg(1) : null; parent::start($callback, $env); }