Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function createApplication() |
||
32 | { |
||
33 | $app = new Container(); |
||
34 | $app->bind('app', 'Illuminate\Container\Container'); |
||
35 | |||
36 | foreach ($this->PACKAGE_CLASSES as $PACKAGE_CLASS) { |
||
37 | $app->bind($PACKAGE_CLASS, 'Alive2212\\'.$this->PACKAGE_NAME.'\\'.$PACKAGE_CLASS); |
||
38 | } |
||
39 | |||
40 | $this->app = $app; |
||
41 | Facade::setFacadeApplication($app); |
||
|
|||
42 | } |
||
43 | |||
70 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: