Skip to content

Commit

Permalink
style: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
il-masaru-yamagishi committed Oct 18, 2023
1 parent 0dd2eea commit 37d744a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Console/Commands/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
6 changes: 4 additions & 2 deletions src/HttpClient/HttpResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 37d744a

Please sign in to comment.