Add support for optional $formatter argument in parse method.