File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php declare (strict_types=1 );
22
33use Amp \Future ;
4- use Amp \Sync \Channel ;
54use function Amp \async ;
65use function Amp \delay ;
76use function Amp \Sync \createChannelPair ;
87
98require __DIR__ . '/../vendor/autoload.php ' ;
109
11- /**
12- * @var Channel<int, int> $left
13- * @var Channel<int, int> $right
14- */
1510[$ left , $ right ] = createChannelPair ();
1611
1712$ future1 = async (function () use ($ left ): void {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function __construct(
3030 private readonly float $ lockPeriod ,
3131 ) {
3232 if ($ lockPeriod <= 0 ) {
33- throw new \ValueError ('The lock period must be greater than 0, got ' . $ lockPeriod );
33+ throw new \ValueError ('The lock period must be greater than 0, got ' . ( string ) $ lockPeriod );
3434 }
3535
3636 $ this ->timers = new \SplQueue ();
You can’t perform that action at this time.
0 commit comments