Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function __construct($function) |
||
15 | { |
||
16 | if (!is_callable($function) && !($function instanceof \Closure)) { |
||
17 | throw new InvalidCallableTypeException( |
||
18 | sprintf("Parameter 1 of %s must be a valid callback or exist function name.", __METHOD__) |
||
19 | ); |
||
20 | } |
||
21 | |||
22 | $this->function = $function; |
||
|
|||
23 | } |
||
24 | |||
47 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..