Make some of the type annotations more accurate, and complete the generated doc-comments to be complete (with description and parameter annotations.)
Add ErrorHandler interface, as well as ErrorHandler\Throwing and ErrorHandler\Collecting. The error handler is passed to Parser::parse(). This supersedes the throwOnError option. NameResolver now accepts an ErrorHandler in the ctor.
And drop the alias of Parser to Parser\Php5.