Support the same primitives as phpdoc
The divergence between AT and phpdoc types leads to non-coformant phpdocs or less expressive AT definitions, any chance we can get close to the set of types annotations that phpdoc supports? http://www.phpdoc.org/docs/latest/references/phpdoc/types.html
Here are a few fun cases:
- AT supports "uint" and phpdoc does not
- Phpdoc supports "self" and AT does not
Good catch.
With regards to "uint", it would be nice to keep this in - this could provide real value to users of AT (checking for db ids, etc) and it would be a backwards-incompatible change.
"self" might be more within reason, as well as "true" and "false". I'll look into this soon.
Allowing me to specify my phpdoc in a compatible way between the two is highly desirable (and they are defacto the standard, not you). I'd recommend in the uint case deprecating uint and getting rid of it in the next version. If you want to have an unsigned restriction either use a new @unsigned tag or some other more compatible way. Or get unit accepted into the phpdoc standard.