Skip to content

Commit 36593eb

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Fix CS
2 parents 989a015 + 7b3f47e commit 36593eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Extension/Extension.php

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

8484
if (false !== strpos($class, "\0")) {
8585
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($method, $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)