Passed
Push — main ( 146da0...02e199 )
by Thierry
09:03
created

FacadesBundle::getFacadeService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Lagdo\Symfony\Facades;
4
5
use Symfony\Component\HttpKernel\Bundle\Bundle;
6
7
class FacadesBundle extends Bundle
8
{
9
    /**
10
     * @inheritdoc
11
     */
12
    public function boot()
13
    {
14
        parent::boot();
15
16
        Container::createInstance($this->container);
0 ignored issues
show
Bug introduced by
It seems like $this->container can also be of type null; however, parameter $container of Lagdo\Symfony\Facades\Container::createInstance() does only seem to accept Symfony\Component\Depend...tion\ContainerInterface, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

16
        Container::createInstance(/** @scrutinizer ignore-type */ $this->container);
Loading history...
17
    }
18
}
19