Commit Graph
4 Commits
Author SHA1 Message Date
Mike van Riel 506fd89d43 Move type extraction to base class and re-use in Throws 2019-12-27 20:59:58 +01:00
Mike van Riel 0a9b8ea383 Add extra tests to check for multibyte behaviour 2019-12-27 20:18:40 +01:00
Mike van Riel 19dd184a2b Support braces in types for @return
In this change, I have introduced a miniature automaton-light to parse
the type from the @return body. This will prevent issues with people
using generics and other unsupported forms of types.

This change does _not_ allow for the use of Generics or similar; the
TypeResolver will still fail to resolve this type. This will remove a
breaking issue in consuming applications where a runtime exception used
to be thrown.

Please note that this change is only for @return; other tags still need
to be done. This will resolve issue #186
2019-12-27 20:18:32 +01:00
Mike van Riel 8fcadfe5f8 No longer bubble tag exceptions to the top
When a tag has an invalid component to it it would cause a whole file to fail
to parse. Instead we should consider invalid tags a nuisance but not worth
breaking the whole parsing over.

In this change I have added a try..catch that will prevent invalid tags from
breaking the whole parsing process.
2019-06-15 22:45:01 +02:00