Skip to content

Commit 29ec950

Browse files
committed
Fix CS
1 parent 5eb5d82 commit 29ec950

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function getBundles()
228228
public function getBundle($name)
229229
{
230230
if (!isset($this->bundles[$name])) {
231-
$class = \get_class($this);
231+
$class = static::class;
232232
$class = 'c' === $class[0] && 0 === strpos($class, "class@anonymous\0") ? get_parent_class($class).'@anonymous' : $class;
233233

234234
throw new \InvalidArgumentException(sprintf('Bundle "%s" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your %s.php file?', $name, $class));
@@ -473,7 +473,7 @@ protected function build(ContainerBuilder $container)
473473
*/
474474
protected function getContainerClass()
475475
{
476-
$class = \get_class($this);
476+
$class = static::class;
477477
$class = 'c' === $class[0] && 0 === strpos($class, "class@anonymous\0") ? get_parent_class($class).str_replace('.', '_', ContainerBuilder::hash($class)) : $class;
478478
$class = $this->name.str_replace('\\', '_', $class).ucfirst($this->environment).($this->debug ? 'Debug' : '').'Container';
479479

@@ -510,7 +510,7 @@ protected function initializeContainer()
510510
$cachePath = $cache->getPath();
511511

512512
// Silence E_WARNING to ignore "include" failures - don't use "@" to prevent silencing fatal errors
513-
$errorLevel = error_reporting(\E_ALL ^ \E_WARNING);
513+
$errorLevel = error_reporting(E_ALL ^ E_WARNING);
514514

515515
try {
516516
if (file_exists($cachePath) && \is_object($this->container = include $cachePath)

0 commit comments

Comments
 (0)