Skip to content

Commit

Permalink
Fix PHPStan error by checking strictly
Browse files Browse the repository at this point in the history
  • Loading branch information
cwdt committed Mar 23, 2021
1 parent b18f21c commit 8d47f08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions phpstan-baseline.neon
Expand Up @@ -52,12 +52,7 @@ parameters:

-
message: "#^Only booleans are allowed in a negated boolean, string given\\.$#"
count: 3
path: src/Server/Helper.php

-
message: "#^Only booleans are allowed in &&, string given on the left side\\.$#"
count: 1
count: 2
path: src/Server/Helper.php

-
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Helper.php
Expand Up @@ -277,7 +277,7 @@ static function (RequestError $err) : Error {
);
}

$doc = $op->queryId && ! $op->query
$doc = $op->queryId !== null && $op->query === null
? $this->loadPersistedQuery($config, $op)
: $op->query;

Expand Down

0 comments on commit 8d47f08

Please sign in to comment.