1 | <?php |
||
9 | class StateInspector implements StateInspectorInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var InspectionInterface[] |
||
13 | */ |
||
14 | private $inspections = []; |
||
15 | |||
16 | /** |
||
17 | * @var IssueInterface[] |
||
18 | */ |
||
19 | private $issues = []; |
||
20 | |||
21 | /** |
||
22 | * StateInspectorManager constructor. |
||
23 | * @param InspectorInterface[] $inspections |
||
24 | */ |
||
25 | 6 | public function __construct(array $inspections = []) |
|
34 | |||
35 | /** |
||
36 | * @param mixed $object |
||
37 | * @param bool $bubble |
||
38 | */ |
||
39 | 5 | final public function inspect($object, $bubble = false) |
|
47 | |||
48 | /** |
||
49 | * @param string $name |
||
50 | * @param mixed $object |
||
51 | * @param bool $bubble |
||
52 | * @return InspectionInterface[] |
||
53 | * @throws \Exception |
||
54 | */ |
||
55 | 5 | final public function inspection(string $name, $object, $bubble = false): array |
|
86 | |||
87 | /** |
||
88 | * @return IssueInterface[] |
||
89 | */ |
||
90 | 5 | final public function getIssues(): array |
|
94 | |||
95 | /** |
||
96 | * @param InspectionInterface $inspection |
||
97 | * @param string|null $name |
||
98 | * @return StateInspectorInterface |
||
99 | */ |
||
100 | 5 | final public function addInspection(InspectionInterface $inspection, string $name = null): StateInspectorInterface |
|
109 | } |
||
110 |
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..