public function getPathInfo()
    {
        $pathInfo = parent::getPathInfo();
        $pathLength = \strlen($pathInfo);

        if ($pathInfo !== '/' && $pathInfo[$pathLength - 1] === '/'
            && (bool) ConfigQuery::read('allow_slash_ended_uri', false)
        ) {
            if (null === $this->resolvedPathInfo) {
                $this->resolvedPathInfo = substr($pathInfo, 0, $pathLength - 1); // Remove the slash
            }

            $pathInfo = $this->resolvedPathInfo;
        }

        return $pathInfo;
    }
public function getPathInfo()
    {
        $pathInfo = parent::getPathInfo();
        $pathLength = \strlen($pathInfo);

        if ($pathInfo !== '/' && $pathInfo[$pathLength - 1] === '/'
            && (bool) ConfigQuery::read('allow_slash_ended_uri', false)
        ) {
            if (null === $this->resolvedPathInfo) {
                $this->resolvedPathInfo = substr($pathInfo, 0, $pathLength - 1); // Remove the slash
            }

            $pathInfo = $this->resolvedPathInfo;
        }

        return $pathInfo;
    }
public function getPathInfo ( ) { $ pathInfo = parent :: getPathInfo ( ) ; $ pathLength = \ strlen ( $ pathInfo ) ; if ( $ pathInfo !== '/' && $ pathInfo [ $ pathLength - 1 ] === '/' && ( bool ) ConfigQuery :: read ( 'allow_slash_ended_uri' , false ) ) { if ( null === $ this -> resolvedPathInfo ) { $ this -> resolvedPathInfo = substr ( $ pathInfo , 0 , $ pathLength - 1 ) ; // Remove the slash } $ pathInfo = $ this -> resolvedPathInfo ; } return $ pathInfo ; }
Filter PathInfo to allow slash ending uri

example:
/admin will be the same as /admin/
Filter PathInfo to allow slash ending uri