src/Parser/Parser.php
protected function parseArgumentList2(array $arg1, array $named): array
    {
        $args = [
            $arg1[0] => $arg1[1]
        ];
        
        foreach ($named as list (, $arg)) {
            if (!\is_array($arg)) {
                throw new \RuntimeException('Positional arguments proceeding named arguments are not allowed');
            }
            
            $args[$arg[0]] = $arg[1];
        }
        
        return $args;
    }
protected function parseArgumentList2(array $arg1, array $named): array
    {
        $args = [
            $arg1[0] => $arg1[1]
        ];
        
        foreach ($named as list (, $arg)) {
            if (!\is_array($arg)) {
                throw new \RuntimeException('Positional arguments proceeding named arguments are not allowed');
            }
            
            $args[$arg[0]] = $arg[1];
        }
        
        return $args;
    }
ArgumentList ::= NamedArgument ( ',' ( Statement | NamedArgument ) )*