From 81a2b2129c800e19a088e3fe3afab5e7da48d5ed Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Wed, 17 Jan 2024 12:03:11 +0100 Subject: [PATCH] fix: typehint for eval_array with POST data (#12) --- src/Rules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rules.php b/src/Rules.php index 72447ab..718d552 100644 --- a/src/Rules.php +++ b/src/Rules.php @@ -160,7 +160,7 @@ return true; } - private function eval_array(string $value, Scope $scope): bool { + private function eval_array(string|array $value, Scope $scope): bool { // Arrays in POST parameters should already be decoded if ($scope === Scope::POST) { return is_array($value);