Test Failed
Push — stable ( 535a20...74df7e )
by Nuno
37s
created

Facade   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 4 1
1
<?php
2
3
namespace LaravelZero\Framework\Bootstrappers;
4
5
/**
6
 * This is the Zero Framework Bootstrapper Facade class.
7
 *
8
 * @author Nuno Maduro <[email protected]>
9
 */
10
class Facade extends Bootstrapper
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function bootstrap(): void
16
    {
17
        \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...
18
    }
19
}
20