phpdoc-parser icon indicating copy to clipboard operation
phpdoc-parser copied to clipboard

Next-gen phpDoc parser with support for intersection types and generics

Results 45 phpdoc-parser issues
Sort by recently updated
recently updated
newest added

# Bug report Since PHP 8.1, it is possible to use `new` as default parameters (["new in initializers"](https://www.php.net/releases/8.1/en.php#new_in_initializers) [RFC](https://wiki.php.net/rfc/new_in_initializers)). PHPStan gets it perfectly, but things stop working once we move...

The MethodTagValue doesn't contain an property returnsReference. This is not a very common option to use but we found a few of them in the wild. Full blown example will...

The param requires a paramname, however, this could be omitted when the param tag is describing just a single argument method or all other params are adequately documented. For example:...

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [Eomm/why-don-t-you-tweet](https://redirect.github.com/Eomm/why-don-t-you-tweet) | action | major | `v1` -> `v2` | | [actions/checkout](https://redirect.github.com/actions/checkout) |...

I got an issue report on my project https://github.com/phpDocumentor/ReflectionDocBlock/issues/365 where we found an issue in this parser. Summarized the users are facing an issue with tag descriptions containing empty lines....

This is a preliminary syntax implementation for subtraction type syntax. Merging now isn't necessary because the work in phpstan-src is far from done. Any feedback is still appreciated though.

Part of https://github.com/phpstan/phpstan/issues/8438 Resolves https://github.com/phpstan/phpdoc-parser/issues/245

The parser cannot detect `@template-default T=5` (Which is I found it in psalm)

The parser cannot detect `class-string-map` (Which is I think found it in psalm)