Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 55ef3ae

Browse files
committed
Installation instructions
1 parent 47e9175 commit 55ef3ae

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,23 @@ This extension provides the following feature:
1111

1212
* 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.
1313

14-
## Usage
14+
## Installation
1515

1616
To use this extension, require it in [Composer](https://getcomposer.org/):
1717

1818
```
1919
composer require --dev phpstan/phpstan-php-parser
2020
```
2121

22-
And include extension.neon in your project's PHPStan config:
22+
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
23+
24+
<details>
25+
<summary>Manual installation</summary>
26+
27+
If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:
2328

2429
```
2530
includes:
26-
- vendor/phpstan/phpstan-php-parser/extension.neon
31+
- vendor/phpstan/phpstan-php-parser/extension.neon
2732
```
33+
</details>

0 commit comments

Comments
 (0)