This package is abandoned and no longer maintained. No replacement package was suggested.

PHP-Parser extensions for PHPStan

Installs: 2 987 422

Dependents: 22

Suggesters: 1

Security: 0

Stars: 23

Watchers: 5

Forks: 9

Open Issues: 2



1.1.0 2021-12-16 19:43 UTC

This package is auto-updated.

Last update: 2023-09-19 08:19:08 UTC


⚠️ This extension is no longer maintained. nikic/PHP-Parser has all the correct types in its source code, so this extension is no longer needed. ⚠️

PHP-Parser extension for PHPStan

Build Latest Stable Version License

This extension provides the following feature:

  • If you register PhpParser\NodeVisitor\NameResolver visitor on PhpParser\NodeTraverser, new $namespacedName property becomes available on nodes that already have a $name property. This extension defines that property.


To use this extension, require it in Composer:

composer require --dev phpstan/phpstan-php-parser

If you also install phpstan/extension-installer then you're all set!

Manual installation

If you don't want to use phpstan/extension-installer, include extension.neon in your project's PHPStan config:

    - vendor/phpstan/phpstan-php-parser/extension.neon