fix: typehint for eval_array with POST data

This commit is contained in:
Victor Westerlund 2024-01-17 12:01:29 +01:00
parent 5ea11cadf1
commit 7a44786af8

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);