Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | 7 | public function sequence(int $currentTime) |
|
33 | { |
||
34 | 7 | if ($this->lastTimeStamp === $currentTime) { |
|
35 | 4 | ++$this->sequence; |
|
36 | 4 | $this->lastTimeStamp = $currentTime; |
|
37 | |||
38 | 4 | return $this->sequence; |
|
39 | } |
||
40 | |||
41 | 7 | $this->sequence = 0; |
|
42 | 7 | $this->lastTimeStamp = $currentTime; |
|
|
|||
43 | |||
44 | 7 | return 0; |
|
45 | } |
||
46 | } |
||
47 |
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..