src/Matcher.php
protected function matchSimilarRoute($httpMethod, $path)
    {
        $dm = [];

        if (($sm = $this->checkStaticRouteInOtherMethods($httpMethod, $path))
                || ($dm = $this->checkDynamicRouteInOtherMethods($httpMethod, $path))) {
            throw new MethodNotAllowedException($httpMethod, $path, array_merge((array) $sm, (array) $dm));
        }

        throw new NotFoundException;
    }
protected function matchSimilarRoute($httpMethod, $path)
    {
        $dm = [];

        if (($sm = $this->checkStaticRouteInOtherMethods($httpMethod, $path))
                || ($dm = $this->checkDynamicRouteInOtherMethods($httpMethod, $path))) {
            throw new MethodNotAllowedException($httpMethod, $path, array_merge((array) $sm, (array) $dm));
        }

        throw new NotFoundException;
    }
protected function matchSimilarRoute ( $ httpMethod , $ path ) { $ dm = [ ] ; if ( ( $ sm = $ this -> checkStaticRouteInOtherMethods ( $ httpMethod , $ path ) ) || ( $ dm = $ this -> checkDynamicRouteInOtherMethods ( $ httpMethod , $ path ) ) ) { throw new MethodNotAllowedException ( $ httpMethod , $ path , array_merge ( ( array ) $ sm , ( array ) $ dm ) ) ; } throw new NotFoundException ; }
Generate an HTTP error request with method not allowed or not found.

@param string $httpMethod
@param string $path

@throws NotFoundException
@throws MethodNotAllowedException
Generate an HTTP error request with method not allowed or not found .