1 | <?php |
||
11 | class OnceMonthRule implements Rule |
||
12 | { |
||
13 | /** |
||
14 | * @var \DateTime |
||
15 | */ |
||
16 | private $time; |
||
17 | |||
18 | 3 | public function __construct() |
|
22 | |||
23 | /** |
||
24 | * @param \DateTimeImmutable $time |
||
25 | * |
||
26 | * @return bool |
||
27 | */ |
||
28 | 2 | public function isMatched(\DateTimeImmutable $time) |
|
34 | |||
35 | /** |
||
36 | * @return int |
||
37 | */ |
||
38 | 3 | public function seconds() |
|
51 | } |
||
52 |
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..