It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
It seems like $actions of type array<integer,array<inte...eact\ActionInterface>>> is incompatible with the declared type array<integer,object<Wyr...React\ActionInterface>> of property $actions.
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..
Loading history...
25
2
$this->mutex = $mutex;
26
27
$scheduler->schedule(function (): void {
28
2
$this->tick();
29
2
});
30
2
}
31
32
2
public static function create(LoopInterface $loop, ActionInterface ...$actions)
33
{
34
2
return new self(new Scheduler($loop), new Memory(), ...$actions);
35
}
36
37
2
private function tick(): void
38
{
39
2
foreach ($this->actions as $action) {
40
2
$this->perform($action);
41
}
42
2
}
43
44
2
private function perform(ActionInterface $action): void
45
{
46
2
if ($action->isDue() === false) {
47
return;
48
}
49
50
$this->mutex->acquire($action->getKey())->then(function ($lock) use ($action) {
51
2
if ($lock === false) {
52
return;
53
}
54
55
return $action->perform()->then(function () use ($action, $lock) {
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..