Skip to content

Commit 68a3fed

Browse files
committed
Fix bug on type hint
1 parent 2bf4d60 commit 68a3fed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Recruiter/Concurrency/Timeout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Timeout
88
{
99
private int $elapsed = 0;
10-
private $waitingFor;
10+
private mixed $waitingFor;
1111
private \Closure|array|string|null $afterCheck = null;
1212
private ?int $pollingInterval = null;
1313

@@ -23,7 +23,7 @@ public static function inSeconds(int $timeout, callable|string $waitingFor = '')
2323
return new self($timeout * 1000 * 1000, $waitingFor);
2424
}
2525

26-
private function __construct(private readonly int $maximum, callable $waitingFor)
26+
private function __construct(private readonly int $maximum, callable|string $waitingFor)
2727
{
2828
$this->waitingFor = $waitingFor;
2929
$this->afterCheck = function (): void {

0 commit comments

Comments
 (0)