File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -24,23 +24,31 @@ It also contains these framework-specific rules (can be enabled separately):
24
24
* Do not extend Nette\Object, use Nette\SmartObject trait instead
25
25
* Rethrow exceptions that are always meant to be rethrown (like ` AbortException ` )
26
26
27
- ## Usage
27
+
28
+ ## Installation
28
29
29
30
To use this extension, require it in [ Composer] ( https://getcomposer.org/ ) :
30
31
31
- ``` bash
32
+ ```
32
33
composer require --dev phpstan/phpstan-nette
33
34
```
34
35
35
- And include extension.neon in your project's PHPStan config:
36
+ If you also install [ phpstan/extension-installer] ( https://github.com/phpstan/extension-installer ) then you're all set!
37
+
38
+ <details >
39
+ <summary >Manual installation</summary >
40
+
41
+ If you don't want to use ` phpstan/extension-installer ` , include extension.neon in your project's PHPStan config:
36
42
37
- ``` yaml
43
+ ```
38
44
includes:
39
- - vendor/phpstan/phpstan-nette/extension.neon
45
+ - vendor/phpstan/phpstan-nette/extension.neon
40
46
```
41
47
42
48
To perform framework-specific checks, include also this file:
43
49
44
- ``` yaml
45
- - vendor/phpstan/phpstan-nette/rules.neon
46
50
```
51
+ - vendor/phpstan/phpstan-nette/rules.neon
52
+ ```
53
+
54
+ </details >
You can’t perform that action at this time.
0 commit comments