phpstan/phpdoc-parser
PHPDoc Parser for PHPStan that parses, represents, and modifies PHPDoc blocks as an AST. Supports rich type syntax (unions, generics, shapes, callables, conditional types), constant expressions, and Doctrine annotations, with full API reference for nodes.
[@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?