Skip to content

Commit ed8c29f

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Fix CS Fix CS
2 parents 7eea971 + e8258bd commit ed8c29f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Compiler/AbstractRecursivePass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private function getExpressionLanguage(): ExpressionLanguage
209209
$arg = $this->processValue(new Reference($id));
210210
$this->inExpression = false;
211211
if (!$arg instanceof Reference) {
212-
throw new RuntimeException(sprintf('"%s::processValue()" must return a Reference when processing an expression, %s returned for service("%s").', \get_class($this), \is_object($arg) ? \get_class($arg) : \gettype($arg), $id));
212+
throw new RuntimeException(sprintf('"%s::processValue()" must return a Reference when processing an expression, %s returned for service("%s").', static::class, \is_object($arg) ? \get_class($arg) : \gettype($arg), $id));
213213
}
214214
$arg = sprintf('"%s"', $arg);
215215
}

Extension/Extension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getNamespace()
6666
*/
6767
public function getAlias()
6868
{
69-
$className = \get_class($this);
69+
$className = static::class;
7070
if ('Extension' != substr($className, -9)) {
7171
throw new BadMethodCallException('This extension does not follow the naming convention; you must overwrite the getAlias() method.');
7272
}
@@ -80,7 +80,7 @@ public function getAlias()
8080
*/
8181
public function getConfiguration(array $config, ContainerBuilder $container)
8282
{
83-
$class = \get_class($this);
83+
$class = static::class;
8484

8585
if (false !== strpos($class, "\0")) {
8686
return null; // ignore anonymous classes

Loader/Configurator/AbstractConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __call(string $method, array $args)
3131
return $this->{'set'.$method}(...$args);
3232
}
3333

34-
throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', \get_class($this), $method));
34+
throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', static::class, $method));
3535
}
3636

3737
/**

0 commit comments

Comments
 (0)