| 1 | <?php |
||
| 7 | trait HandleCascadeFields |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $dependency; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return array |
||
| 16 | */ |
||
| 17 | public function getDependency() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param array $dependency |
||
| 24 | * @param \Closure $closure |
||
| 25 | */ |
||
| 26 | public function callWithDependency(array $dependency, \Closure $closure) |
||
| 34 | } |
||
| 35 |
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..