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

Psalm supports that: https://psalm.dev/r/cd2368bac0 PHPStan does not yet: https://phpstan.org/r/5a21f171-ec9a-467b-ad9e-6d1b1bd1de33

I would expect an error or `stdClass|(Iterator&Throwable)`, since `"and"` usually has higher precedence than `"or"`.

The current implementation (https://github.com/phpstan/phpdoc-parser/pull/264) has some drawbacks: * Printing with preserving format is pretty broken. For example, it does not notice when a comment is removed from a node. *...

refs https://github.com/phpstan/phpstan/issues/11884#issuecomment-2426297188

The Drupal project now uses PHPStan types ([change record](https://www.drupal.org/node/3505429)) and the module serving https://api.drupal.org/ needs to follow and so I am looking at using this project for all of the...