diff --git a/src/Console/Commands/RunCommand.php b/src/Console/Commands/RunCommand.php index 2b9e402..1ad36a3 100644 --- a/src/Console/Commands/RunCommand.php +++ b/src/Console/Commands/RunCommand.php @@ -102,7 +102,7 @@ protected function execute(InputInterface $input, OutputInterface $output) if (\method_exists($scenarioFunction, 'isStatic') && !$scenarioFunction->isStatic()) { $io->warning('Scenario Closure should be static: `return static function(...`'); } - $this->cancelToken = new CancellationToken(new DeferredCancellation); + $this->cancelToken = new CancellationToken(new DeferredCancellation()); $users = $input->getOption('users'); \assert(\is_int($users)); diff --git a/src/HttpClient/HttpResult.php b/src/HttpClient/HttpResult.php index f66de30..8b8db6d 100644 --- a/src/HttpClient/HttpResult.php +++ b/src/HttpClient/HttpResult.php @@ -57,11 +57,13 @@ public function offsetGet(mixed $offset): mixed return $this->result[$offset]; } - public function offsetSet(mixed $offset, mixed $value): void { + public function offsetSet(mixed $offset, mixed $value): void + { throw new \LogicException('HttpResult is immutable'); } - public function offsetUnset(mixed $offset): void { + public function offsetUnset(mixed $offset): void + { throw new \LogicException('HttpResult is immutable'); }