Test Failed
Pull Request — stable (#25)
by Nuno
01:42
created

Facade::bootstrap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace LaravelZero\Framework\Bootstrappers;
4
5
use I;
6
7
/**
8
 * This is the Zero Framework Bootstrapper Facade class.
9
 *
10
 * @author Nuno Maduro <[email protected]>
11
 */
12
class Facade extends Bootstrapper
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function bootstrap(): void
18
    {
19
        \Illuminate\Support\Facades\Facade::setFacadeApplication($this->container);
0 ignored issues
show
Compatibility introduced by
$this->container of type object<Illuminate\Contracts\Container\Container> is not a sub-type of object<Illuminate\Contra...Foundation\Application>. It seems like you assume a child interface of the interface Illuminate\Contracts\Container\Container to be always present.

This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.

Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.

Loading history...
20
    }
21
}
22