Skip to content

Commit

Permalink
PHPStan fix (#2760)
Browse files Browse the repository at this point in the history
* PHPStan fix

* Fix
  • Loading branch information
Nyholm committed Sep 19, 2020
1 parent f999bc7 commit a99fb2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ parameters:
count: 1
path: src/Client.php

-
message: "#^Binary operation \"\\*\" between float\\|int\\|string and 1000 results in an error\\.$#"
count: 1
path: src/Handler/MockHandler.php

-
message: "#^Parameter \\#1 \\$str1 of function strcasecmp expects string, int\\|string given\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/MockHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function __invoke(RequestInterface $request, array $options): PromiseInte
}

if (isset($options['delay']) && \is_numeric($options['delay'])) {
\usleep($options['delay'] * 1000);
\usleep((int) $options['delay'] * 1000);
}

$this->lastRequest = $request;
Expand Down

0 comments on commit a99fb2f

Please sign in to comment.