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