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 37 phpdoc-parser issues
Sort by recently updated
recently updated
newest added

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [slevomat/coding-standard](https://togithub.com/slevomat/coding-standard) | require-dev | major | `^7.0.0` -> `^8.0.0` | ---...

partially fixes https://github.com/phpstan/phpstan/issues/2923

This PR adds support for parsing type projections (phpstan/phpstan#3290) which I'd like to implement in PHPStan. Type projections are a way of declaring the variance of a type parameter at...

This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Edited/Blocked These updates have been manually edited so Renovate will no longer make...

i can't get phpstan to recognise `\\` in a literal string: https://phpstan.org/r/41f1530f-eaee-4e7d-8bfc-e7ccc7cfc7a7 using any other sting there makes it work just fine: https://phpstan.org/r/a884b37d-682b-45a4-b891-1725ffd1c428 _Originally posted by @mad-briller in https://github.com/phpstan/phpstan/issues/7483#issuecomment-1200168302_

I've seen this discussion https://github.com/phpstan/phpdoc-parser/issues/6 is there alread a solution for multiline annotations e.g. for `@return` or `@var`, `@param` annotations? i',m starting to reach the max line usage when the...

Parentheses in callables in some cases create unexpected results, like `(Closure(): int|null)` changing to `(Closure(): int)|null` https://phpstan.org/r/f0db1360-c01a-4884-8c17-1caa7d464852

:wave: this is might be out of scope for Phpstan, but it would be really great to be able to modify docblocks whilst preserving their formatting (this would be useful,...

Please add a `README.md` showing how the parser can be used.