phpstan/phpdoc-parser
phpstan/phpdoc-parser parses PHPDocs into a typed AST so you can read and modify docblocks programmatically. It handles rich types like unions, generics, array shapes, callables, and conditional types, plus Doctrine annotations. Powers PHPStan.
[@pure-unless-parameter-passed](https://github.com/pure-unless-parameter-passed)[@psalm-inheritors](https://github.com/psalm-inheritors) and [@phpstan-sealed](https://github.com/phpstan-sealed) tagThis release brings API cleanup and enables new features for everyone that were previously hidden behind opt-in feature toggles, like:
See the UPGRADING guide for details.
phpstan/phpdoc-parser 2.0 will also be included in PHPStan 2.0 that's going to be released on Monday November 11th 2024.
non-empty-array and non-empty-list array shape kind[@pure-unless-callable-is-impure](https://github.com/pure-unless-callable-is-impure)TemplateTagValueNode name cannot be empty string[@phan-](https://github.com/phan-) prefixes for recognized doc tagsHow can I help you explore Laravel packages today?