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 22 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.
950bddf - Support unsealed array shapes
2a4686e - Add generics support to @method definitions
Your coding agent can read these notes before it upgrades. Set up the MCP server →
df1a794 - Generics type projections (call-site variance)
aac4411 - Add specialized tags support
33aefcd - Add equality assert syntax
ae85d4b - Fix __toString() for negated asserts
5f13698 - Allow unparenthesized conditional type in conditional else branch
7d1e812 - Add tests for template bound + default
87fa2d5 - Implement @param-out tag
@param-out tag22a7b24 - Implement this-out/self-out syntax
8dd908d - Add test with parenthesis
8e90757 - Update backward-compatibility.yml
135607f - Support @template-contravariant tags
- 4a07085 - Micro-optimize lexer
76150ae - Optimize generated regex
5aaeb83 - Optimize Lexer::tokenize()
3cb62d1 - Make requiring whitespace before description optional
28cb38b - Implement offset access type syntax
6cafed9 - Add negated assertions
129a63b - Extend allowed types for conditional for parameter
d8e9fd9 - ConstExprParser - throw known exception type
a5e191f - Update dependency slevomat/coding-standard to v7.1
4cb3021 - Support multiline parenthesized types
0533306 - Fixed missing parentheses in ConditionalTypeForParameterNode::__toString()
445ccb7 - Support conditional types
c089469 - Support multiline callable syntax
--no-suggest`dbc093d` - Fix BC break vs. 1.0.0
`da187fd` - Require PHPStan 1.0
* `9e8e6e7` - Open 1.0-dev
9e8e6e7 - Open 1.0-dev`816e826` - Allow parsing class constants with more than one wildcard in the constant name
816e826 - Allow parsing class constants with more than one wildcard in the constant name`fac8615` - Do not add space if empty string
fac8615 - Do not add space if empty string`c37ba6f` - Update .gitattributes
`e24edb6` - Bump metcalfc/changelog-generator from v0.4.4 to v1.0.0
`f9f5616` - Mark some TokenIterator methods as impure
`86b0a00` - Fix PhpDocNode end newline print
`cf4fc7d` - Fixed "Undefined array key -1"
cf4fc7d - Fixed "Undefined array key -1"`cfe3c78` - Allow nodes to have custom attributes
`cf4fc7d` - Fixed "Undefined array key -1"
cf4fc7d - Fixed "Undefined array key -1"`b451b2f` - Preserve whitespace formatting of text nodes
`2d862ef` - type aliases: support @phpstan-type and @psalm-type tags
`35c6094` - Update symfony/process requirement from ^4.0 to ^5.2
`33d5f73` - Use the maintained version of php-parallel-lint
Allow PHP 8 in composer.json (https://github.com/phpstan/phpdoc-parser/pull/50), thanks @Th3Mouk!
@phpstan-throws (https://github.com/phpstan/phpdoc-parser/pull/51), thanks @VincentLanglet!Fixed parsing description started with HTML tag - it's no longer mistaken as generics (https://github.com/phpstan/phpdoc-parser/pull/47), #41, thanks
Fixed parsing description started with HTML tag - it's no longer mistaken as generics (https://github.com/phpstan/phpdoc-parser/pull/47), #41, thanks @kukulich!
Multiline generics support with trailing commas (#44), thanks @icanhazstring!
Multiline generics support with trailing commas (#44), thanks @icanhazstring!
Fixed parsing constant fetch with wildcard in complex types (https://github.com/phpstan/phpdoc-parser/commit/d840b6956b47930f19eb9d8dbc9553650d5072d6)
Fixed parsing constant fetch with wildcard in complex types (https://github.com/phpstan/phpdoc-parser/commit/d840b6956b47930f19eb9d8dbc9553650d5072d6), #45
Support for literals and class constants as PHPDoc types (https://github.com/phpstan/phpdoc-parser/commit/d60ff778be5c10b273328ba13c58f5c771df596d), a
ConstTypeNode, see PHPStan documentation@mixin Type [description] (https://github.com/phpstan/phpdoc-parser/commit/956e7215c7c740d1226e7c03677140063918ec7d), see PHPStan documentationArray shapes - support single-quoted and double-quoted strings (https://github.com/phpstan/phpdoc-parser/commit/97a0114d7f875047afdc34b304262639817831
Array shapes - support single-quoted and double-quoted strings (https://github.com/phpstan/phpdoc-parser/commit/97a0114d7f875047afdc34b3042626398178318b), #39, #40
Allow [] after generic type or array shape (https://github.com/phpstan/phpdoc-parser/pull/37), https://github.com/phpstan/phpdoc-parser/issues/36, tha
Allow [] after generic type or array shape (https://github.com/phpstan/phpdoc-parser/pull/37), https://github.com/phpstan/phpdoc-parser/issues/36, thank you @iluuu1994!
Fix handling @var Foo $this
Fix handling @var Foo $this (https://github.com/phpstan/phpdoc-parser/commit/a6d13524641bb780efc821d9e0a1e1bfb23cbd0e)
Reserve @use for generic traits instead of @uses (which already has meaning in PHP projects)
Reserve @use for generic traits instead of @uses (which already has meaning in PHP projects) (https://github.com/phpstan/phpdoc-parser/commit/0331e880c0a1eb8e10d1af2fcab90fa1dd6a07ee)
Support @template (#27), thanks @arnaud-lb!
@template (#27), thanks @arnaud-lb!@extends, @implements, @uses (#31), thanks @arnaud-lb!@template-covariant (#34), thanks @arnaud-lb!class-string (3e956143edf47c6b5a95decf6603188f81ad9abb)@phpstan- and @psalm- prefixes (b23fbb14d596f83c2a0d2a8d0503c7856346d19b), thanks @JanTvrdik!Array shapes support (#30), thank you @arnaud-lb!
Array shapes support (#30), thank you @arnaud-lb!
Enhance support for multiple line descriptions (#26), thanks @mglaman!
Enhance support for multiple line descriptions (#26), thanks @mglaman!
Added missing getDeprecatedTagValues() method.
Added missing getDeprecatedTagValues() method.
Support for reading @deprecated messages (#23), thanks @mglaman!
Support for reading @deprecated messages (#23), thanks @mglaman!
Made PhpDocParser::parseTagValue() public so that it can be used by slevomat/coding-standard.
Made PhpDocParser::parseTagValue() public so that it can be used by slevomat/coding-standard.
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.