diff --git a/Utils/ArrayUtils.php b/Utils/ArrayUtils.php index 24ffa5c92..04de37098 100644 --- a/Utils/ArrayUtils.php +++ b/Utils/ArrayUtils.php @@ -269,6 +269,10 @@ final class ArrayUtils */ public static function getArg(string $id, array $args) : ?string { + if (\is_numeric($id)) { + return $args[(int) $id] ?? null; + } + if (($key = \array_search($id, $args)) === false || $key === \count($args) - 1) { return null; }