X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fsymfony%2Fdependency-injection%2FCompiler%2FCompiler.php;fp=vendor%2Fsymfony%2Fdependency-injection%2FCompiler%2FCompiler.php;h=d5c01a640fce55a415d04e727482b29f7fa804bb;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=2a0d13641d9d2d1d75155ed5b1221b7596c68b64;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/vendor/symfony/dependency-injection/Compiler/Compiler.php b/vendor/symfony/dependency-injection/Compiler/Compiler.php index 2a0d13641..d5c01a640 100644 --- a/vendor/symfony/dependency-injection/Compiler/Compiler.php +++ b/vendor/symfony/dependency-injection/Compiler/Compiler.php @@ -79,10 +79,10 @@ class Compiler */ 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 @@ class Compiler 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; } /**