Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | final class MethodChanged implements ClassBased |
||
14 | { |
||
15 | /** |
||
16 | * @var PropertyBased |
||
17 | */ |
||
18 | private $checkMethod; |
||
19 | |||
20 | public function __construct(MethodBased $checkMethod) |
||
21 | { |
||
22 | $this->checkMethod = $checkMethod; |
||
|
|||
23 | } |
||
24 | |||
25 | public function compare(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes |
||
40 | ); |
||
41 | } |
||
42 | |||
43 | /** @return ReflectionMethod[] indexed by lower case method name */ |
||
44 | private function methods(ReflectionClass $class) : array |
||
53 | ); |
||
54 | } |
||
56 |
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..