From 78fae7f2a5ef0bb114ccbff8f556c4f567f0eb77 Mon Sep 17 00:00:00 2001 From: Christoffer Lindahl Date: Sun, 1 Nov 2020 11:00:03 +0100 Subject: [PATCH] Removed duplicate string check for index and token in "validateRequest()". --- src/AntiCSRF.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/AntiCSRF.php b/src/AntiCSRF.php index 58b9fe1..c4aa442 100644 --- a/src/AntiCSRF.php +++ b/src/AntiCSRF.php @@ -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 $stored */ $stored = $sess[$index];