mirror of
https://codeberg.org/reflect/reflect-rules-plugin.git
synced 2025-09-14 08:53:42 +02:00
fix: typehint for eval_array with POST data (#12)
This commit is contained in:
parent
5ea11cadf1
commit
81a2b2129c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue