1 | <?php declare(strict_types=1); |
||
9 | final class Cron |
||
10 | { |
||
11 | /** @var ActionInterface[] */ |
||
12 | private $actions; |
||
13 | |||
14 | /** @var MutexInterface */ |
||
15 | private $mutex; |
||
16 | |||
17 | /** |
||
18 | * @param SchedulerInterface $scheduler |
||
19 | * @param MutexInterface $mutex |
||
20 | * @param ActionInterface[] $actions |
||
21 | */ |
||
22 | 2 | private function __construct(SchedulerInterface $scheduler, MutexInterface $mutex, ActionInterface ...$actions) |
|
31 | |||
32 | 2 | public static function create(LoopInterface $loop, ActionInterface ...$actions) |
|
36 | |||
37 | 2 | private function tick(): void |
|
43 | |||
44 | 2 | private function perform(ActionInterface $action): void |
|
60 | } |
||
61 |
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..