Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function createApplication() |
||
34 | { |
||
35 | $app = new Container(); |
||
36 | $app->bind('app', 'Illuminate\Container\Container'); |
||
37 | |||
38 | foreach ($this->PACKAGE_CLASSES as $PACKAGE_CLASS) { |
||
39 | $app->bind($PACKAGE_CLASS, 'Alive2212\\'.$this->PACKAGE_NAME.'\\'.$PACKAGE_CLASS); |
||
40 | } |
||
41 | |||
42 | $this->app = $app; |
||
43 | Facade::setFacadeApplication($app); |
||
|
|||
44 | } |
||
45 | |||
71 |
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: