diff --git a/test/Loop/UvLoopDestructShutdown.phpt b/test/Loop/UvLoopDestructShutdown.phpt index df68d2d2..bd6a9dd2 100644 --- a/test/Loop/UvLoopDestructShutdown.phpt +++ b/test/Loop/UvLoopDestructShutdown.phpt @@ -11,18 +11,18 @@ include __DIR__.'/../../vendor/autoload.php'; use Amp\Loop; -Loop::run(function() { - Loop::setState('test', new class { - private $handle; - function __construct() { - $this->handle = Loop::repeat(10, function() {}); - } - function __destruct() { - Loop::cancel($this->handle); - print "ok"; - } - }); - Loop::delay(0, [Loop::class, "stop"]); +Loop::run(function () { + Loop::setState('test', new class { + private $handle; + public function __construct() { + $this->handle = Loop::repeat(10, function () {}); + } + public function __destruct() { + Loop::cancel($this->handle); + print "ok"; + } + }); + Loop::delay(0, [Loop::class, "stop"]); }); ?>