1 | <?php |
||
7 | class TimeRange |
||
8 | { |
||
9 | /** @var \Spatie\OpeningHours\Time */ |
||
10 | protected $start; |
||
11 | |||
12 | /** @var \Spatie\OpeningHours\Time */ |
||
13 | protected $end; |
||
14 | |||
15 | 43 | protected function __construct(Time $start, Time $end) |
|
20 | |||
21 | 44 | public static function fromString(string $string): self |
|
31 | |||
32 | 18 | public function start(): Time |
|
36 | |||
37 | 14 | public function end(): Time |
|
41 | |||
42 | 29 | public function spillsOverToNextDay(): bool |
|
46 | |||
47 | 28 | public function containsTime(Time $time): bool |
|
59 | |||
60 | 22 | public function overlaps(TimeRange $timeRange): bool |
|
64 | |||
65 | 9 | public function format(string $timeFormat = 'H:i', string $rangeFormat = '%s-%s'): string |
|
69 | |||
70 | 8 | public function __toString(): string |
|
74 | } |
||
75 |
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..