[BUGFIX] Fixed InputHandler::find and InputHandler::value failing when using array methods.

This commit is contained in:
Simon Sessingø
2021-03-29 18:45:49 +02:00
parent 06ee78a48f
commit adc879bb13
2 changed files with 17 additions and 0 deletions

View File

@@ -231,6 +231,10 @@ class InputHandler
{
$element = null;
if(count($methods) > 0) {
$methods = is_array(...$methods) ? array_values(...$methods) : $methods;
}
if (count($methods) === 0 || in_array(Request::REQUEST_TYPE_GET, $methods, true) === true) {
$element = $this->get($index);
}