Skip to content

Files

Latest commit

55ef3ae · May 21, 2019

History

History
33 lines (22 loc) · 1.3 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.3 KB

PHP-Parser extension for PHPStan

Build Status 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.

Installation

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:

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