Skip to content

Commit e440cf7

Browse files
committed
Merge branch '5.0'
* 5.0: Fix CS Fix CS Fix CS
2 parents c168f82 + 92c9062 commit e440cf7

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
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
@@ -36,7 +36,7 @@ public function __call(string $method, array $args)
3636
return $this->{'set'.$method}(...$args);
3737
}
3838

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

4242
/**

Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function import($resource, $type = null, $ignoreErrors = false, $sourceRe
5757
if ($ignoreNotFound = 'not_found' === $ignoreErrors) {
5858
$args[2] = false;
5959
} elseif (!\is_bool($ignoreErrors)) {
60-
throw new \TypeError(sprintf('Invalid argument $ignoreErrors provided to %s::import(): boolean or "not_found" expected, %s given.', \get_class($this), \gettype($ignoreErrors)));
60+
throw new \TypeError(sprintf('Invalid argument $ignoreErrors provided to %s::import(): boolean or "not_found" expected, %s given.', static::class, \gettype($ignoreErrors)));
6161
}
6262

6363
try {

Loader/IniFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function load($resource, string $type = null)
4949
/**
5050
* {@inheritdoc}
5151
*/
52-
public function supports($resource, string $type = null)
52+
public function supports($resource, string $type = null)
5353
{
5454
if (!\is_string($resource)) {
5555
return false;

0 commit comments

Comments
 (0)