public static function unexpectedEnd(Input $definition): self
    {
        $pointer = self::createPointerString($definition->getInput(), $definition->getIndex());

        return new self("Unexpected end of route:\n$pointer");
    }
public static function unexpectedEnd(Input $definition): self
    {
        $pointer = self::createPointerString($definition->getInput(), $definition->getIndex());

        return new self("Unexpected end of route:\n$pointer");
    }
public static function unexpectedEnd ( Input $ definition ) : self { $ pointer = self :: createPointerString ( $ definition -> getInput ( ) , $ definition -> getIndex ( ) ) ; return new self ( "Unexpected end of route:\n$pointer" ) ; }
Invalid route definition with unexpected end.

@param Input $definition
@return InvalidRoute
Invalid route definition with unexpected end .