1 | <?php |
||
11 | class DayOfWeek implements Evaluator |
||
12 | { |
||
13 | const MONDAY = 1; |
||
14 | const TUESDAY = 2; |
||
15 | const WEDNESDAY = 3; |
||
16 | const THURSDAY = 4; |
||
17 | const FRIDAY = 5; |
||
18 | const SATURDAY = 6; |
||
19 | const SUNDAY = 7; |
||
20 | |||
21 | /** |
||
22 | * @var HolidayProvider |
||
23 | */ |
||
24 | private $weekday; |
||
25 | |||
26 | /** |
||
27 | * @param int $dayOfWeek |
||
28 | */ |
||
29 | 70 | public function __construct($dayOfWeek) |
|
45 | |||
46 | /** |
||
47 | * @param string $date |
||
48 | * @return bool |
||
49 | */ |
||
50 | 67 | public function is($date) |
|
54 | } |
||
55 |
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..