1 | <?php |
||
10 | class Facade extends LaravelFacade |
||
11 | { |
||
12 | /** |
||
13 | * Handle dynamic, static calls to the object. |
||
14 | * |
||
15 | * @param string $method |
||
16 | * @param array $args |
||
17 | * @return mixed |
||
18 | * |
||
19 | * @throws \RuntimeException |
||
20 | * @throws \ReflectionException |
||
21 | */ |
||
22 | 4 | public static function __callStatic($method, $args) |
|
38 | |||
39 | /** |
||
40 | * Adds missing dependencies to the user-provided input. |
||
41 | * |
||
42 | * @param ReflectionParameter[] $parameters |
||
43 | * @param array $inputData |
||
44 | */ |
||
45 | 4 | private static function addMissingDependencies($parameters, array &$inputData) |
|
57 | } |
||
58 |
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: