Skip to content

Commit

Permalink
Soothe phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Nov 11, 2021
1 parent 3770d8a commit 362f4ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/CliHttpCache.php
Expand Up @@ -5,14 +5,12 @@
namespace BEAR\QueryRepository;

use BEAR\Sunday\Extension\Transfer\HttpCacheInterface;

use function assert;
use function is_string;
use function parse_str;
use function sprintf;
use function str_replace;
use function strtoupper;

use const PHP_EOL;

final class CliHttpCache implements HttpCacheInterface
Expand Down Expand Up @@ -75,7 +73,7 @@ private function getServerKey(string $key): string
private function getEtag(array $server): ?string
{
/** @psalm-suppress MixedAssignment */
$arg3 = $server['argv'][3] ?? ''; // @phpstan-ignore-line
$arg3 = $server['argv'][3] ?? '';
assert(is_string($arg3));
$hasRequestHeaderInCli = isset($server['argc']) && $server['argc'] === 4 && $arg3;
if ($hasRequestHeaderInCli) {
Expand Down

0 comments on commit 362f4ee

Please sign in to comment.