Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class ViewSituations extends BaseSituation |
||
10 | { |
||
11 | use ViewNormalizer; |
||
12 | |||
13 | /** |
||
14 | * @param array|string $views |
||
15 | * |
||
16 | * @return YouShouldHave |
||
17 | */ |
||
18 | 19 | public function whenYouMakeView(...$views): YouShouldHave |
|
19 | { |
||
20 | 19 | return $this->watchView($this->normalizeView($views)); |
|
21 | } |
||
22 | |||
23 | 18 | private function watchView($view): YouShouldHave |
|
28 | } |
||
29 | } |
||
30 |
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..