Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/dependency-injection/Compiler/Compiler.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/vendor/symfony/dependency-injection/Compiler/Compiler.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/dependency-injection/Compiler/Compiler.php Thu Feb 28 13:21:36 2019 +0000 @@ -22,7 +22,7 @@ class Compiler { private $passConfig; - private $log = array(); + private $log = []; private $loggingFormatter; private $serviceReferenceGraph; @@ -79,10 +79,10 @@ */ public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION/*, int $priority = 0*/) { - if (func_num_args() >= 3) { + if (\func_num_args() >= 3) { $priority = func_get_arg(2); } else { - if (__CLASS__ !== get_class($this)) { + if (__CLASS__ !== \get_class($this)) { $r = new \ReflectionMethod($this, __FUNCTION__); if (__CLASS__ !== $r->getDeclaringClass()->getName()) { @trigger_error(sprintf('Method %s() will have a third `int $priority = 0` argument in version 4.0. Not defining it is deprecated since Symfony 3.2.', __METHOD__), E_USER_DEPRECATED); @@ -115,10 +115,10 @@ public function log(CompilerPassInterface $pass, $message) { if (false !== strpos($message, "\n")) { - $message = str_replace("\n", "\n".get_class($pass).': ', trim($message)); + $message = str_replace("\n", "\n".\get_class($pass).': ', trim($message)); } - $this->log[] = get_class($pass).': '.$message; + $this->log[] = \get_class($pass).': '.$message; } /** @@ -141,7 +141,7 @@ $pass->process($container); } } catch (\Exception $e) { - $usedEnvs = array(); + $usedEnvs = []; $prev = $e; do {