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

        return new self("Optional sequence cannot be followed by anything else:\n$pointer");
    }
public static function optionalIsNotSuffix(Input $definition): self
    {
        $pointer = self::createPointerString($definition->getInput(), $definition->getIndex());

        return new self("Optional sequence cannot be followed by anything else:\n$pointer");
    }
public static function optionalIsNotSuffix ( Input $ definition ) : self { $ pointer = self :: createPointerString ( $ definition -> getInput ( ) , $ definition -> getIndex ( ) ) ; return new self ( "Optional sequence cannot be followed by anything else:\n$pointer" ) ; }
Invalid route definition where optional part is not at the very end.

@param Input $definition
@return InvalidRoute
Invalid route definition where optional part is not at the very end .