Fix inheritance of DoctrineError
Cover scanString and scanNumber