fix: typehint for eval_array with POST data (#12)

This commit is contained in:
Victor Westerlund 2024-01-17 12:03:11 +01:00 committed by GitHub
parent 5ea11cadf1
commit 81a2b2129c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,7 +160,7 @@
return true; 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 // Arrays in POST parameters should already be decoded
if ($scope === Scope::POST) { if ($scope === Scope::POST) {
return is_array($value); return is_array($value);