Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class EventSituations extends BaseSituation |
||
9 | { |
||
10 | /** |
||
11 | * @param mixed ...$event |
||
12 | * |
||
13 | * @return YouShouldHave |
||
14 | */ |
||
15 | public function whenEventHappens(...$event): YouShouldHave |
||
16 | { |
||
17 | return $this->watchEvents($this->normalizeInput($event)); |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param $eventName |
||
22 | * |
||
23 | * @return YouShouldHave |
||
24 | */ |
||
25 | private function watchEvents($eventName): YouShouldHave |
||
30 | } |
||
31 | } |
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..