| 1 | <?php |
||
| 7 | class FunctionInvoker implements InvokerInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \Closure|string |
||
| 11 | */ |
||
| 12 | private $function; |
||
| 13 | |||
| 14 | public function __construct($function) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function invoke() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function invokeWithArgs($args) |
||
| 46 | } |
||
| 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..