mirror of
https://github.com/shlinkio/shlink.git
synced 2026-08-01 00:57:55 -05:00
Fix missing static check
This commit is contained in:
@@ -147,7 +147,7 @@ class RedirectCondition extends AbstractEntity implements JsonSerializable
|
||||
private function matchesQueryParam(ServerRequestInterface $request): bool
|
||||
{
|
||||
$query = $request->getQueryParams();
|
||||
$queryValue = $query[$this->matchKey] ?? null;
|
||||
$queryValue = $this->matchKey !== null ? ($query[$this->matchKey] ?? null) : null;
|
||||
|
||||
return $queryValue === $this->matchValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user