NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #102 most downloaded on Packagist
PHPDoc parser with support for nullable, intersection and generic types
Latest stable
2.4.1
Last release 23 days ago
30 Oct 2026
Release timing varies
gaps range from 2 weeks to 5 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
120 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
af8e840 - Printer: keep the format of the tag value when the tag name changes
e364709 - Add NameNode, FullyQualifiedNameNode and RelativeNameNode
Your coding agent can read these notes before it upgrades. Set up the MCP server →
88d1b98 - PhpDocParser: read a quoted key of a Doctrine annotation argument
c9fb3e1 - Printer: new empty line in docblock without trailing space
a53805e - Invalid Doctrine tag with backslash: return InvalidTagValueNode
2c122d2 - Printer: remove the separator after a removed first list item
ec4293f - Update dependency phplrt/phplrt to v4.2.4
3fcdcf0 - Do not walk to the end of a PHPDoc for every generic
1427af4 - Compute token offsets once instead of rescanning from the first token
148ceff - Lexer: extract the matches with PREG_PATTERN_ORDER
98dbc94 - Write the PHPDoc language down as a grammar, and fuzz from it
Foo & .5 as an intersection, not as a reference@pure-unless-parameter-passed1b7cc35 - Replace deprecated actions/create-release with softprops/action-gh-release
@pure-unless-parameter-passeda004701 - Add CLAUDE.md to .gitattributes
16dbf99 - __set_state for Comment
1e0cd53 - Support constant fetch in array key
b9e61a6 - Add support for @psalm-inheritors and @phpstan-sealed tag
9b30d6f - TypeParser - support comments at EOL with //
51087f8 - Allow multiple new lines in union and intersection definition
72e51f7 - TypeParser: Allow multiple newlines and also allow multiline union and intersection types for array shapes
phpstan/phpdoc-parser 2.0 is here! 🎉
This 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.
82a311f - Support for non-empty-array and non-empty-list array shape kind
non-empty-array and non-empty-list array shape kind6ca22b1 - Support for @pure-unless-callable-is-impure
@pure-unless-callable-is-impure249f15f - PhpDocParser: support template type lower bounds
51b95ec - Deploy API Reference into a subdirectory with the current branch name
5ceb0e3 - Support typing extra items in unsealed array shapes
fcaefac - TemplateTagValueNode name cannot be empty string
TemplateTagValueNode name cannot be empty string536889f - Support array and offset access on const types
cd06d6b - Add @phan- prefixes for recognized doc tags
@phan- prefixes for recognized doc tags86e4d5a - Support for @param-closure-this
231e318 - Improve static keyword conflict resolution in @method
bd84b62 - Added support for @phpstan-require-extends and @phpstan-require-implements PHPDoc tags
cb802d0 - Update Slevomat CS for testing
6bd0c26 - Git export-ignore phpstan-baseline.neon
12f01d2 - fix HTML description detection for phpstorm stubs
bcad8d9 - Allow conditional type in callable return type
9f854d2 - fix/unify callable template parsing with EOL
3510b0a - Allow asserting the type of $this
5745775 - Fix parsing Doctrine strings
e64b193 - Fix trailing newlines in PHPDocs with textBetweenTagsBelongsToDescription=true
65c3959 - Format-preserving printer - use original detected newline
ec58baf - Multiple Doctrine tags on a single line
b0c366d - Fix token indexes in TypeAliasImportTagValueNode
a8094fa - Do not add extra parentheses when changing the return type of callable
e560a3e - WordPress docblock test
b2fba53 - Api Reference favicon
7d568c8 - Simplify implementation
6c04009 - Fix ArrayTypeNode indexes
90490bd - TypeParserTest - verify indexes by concatenating token values
57f6787 - Update slevomat/coding-standard
00d0fcd - NodeTraverser inspired by nikic/php-parser
f545fc3 - When callable returns callable the return type needs to be put in parentheses
178b33a - Backward compatibility - QuoteAwareConstExprStringNode should extend ConstExprStringNode
__toString()22dcdfd - Do not crash on invalid UTF-8
882eabc - Support for object shapes
d3753fc - Fix parsing invalid types in type aliases
bfec872 - PhpDocParser - option to preserve type alias with parse error
- e27e92d - Fix list{} parsing
57090cf - Add support for list shapes
61800f7 - Fix ConstExprArrayItemNode::__toString()
- 5941477 - Fix printing nodes
One column per quarter.