Skip to content

Commit

Permalink
Removed duplicate string check for index and token in "validateReques…
Browse files Browse the repository at this point in the history
…t()".
  • Loading branch information
Kekos committed Nov 1, 2020
1 parent b1b8612 commit 71f8010
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/AntiCSRF.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,6 @@ public function validateRequest(): bool
return false;
}

if (!\is_string($index) || !\is_string($token)) {
return false;
}

// Grab the value stored at $index
/** @var array<string, mixed> $stored */
$stored = $sess[$index];
Expand Down

0 comments on commit 71f8010

Please sign in to comment.