src/Match.php
protected function methodAllowed(): bool
    {
        $this->test = $this->rule->getMethods() === null ||
            \in_array($this->method, $this->rule->getMethods(), true);

        return $this->isTest();
    }
protected function methodAllowed(): bool
    {
        $this->test = $this->rule->getMethods() === null ||
            \in_array($this->method, $this->rule->getMethods(), true);

        return $this->isTest();
    }
check method

@return bool