File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 30
30
31
31
Additional rules are coming in subsequent releases!
32
32
33
- ## Usage
34
33
35
- To use these rules, require it in [ Composer] ( https://getcomposer.org/ ) :
34
+ ## Installation
35
+
36
+ To use this extension, require it in [ Composer] ( https://getcomposer.org/ ) :
36
37
37
38
```
38
39
composer require --dev phpstan/phpstan-strict-rules
39
40
```
40
41
41
- And include rules.neon in your project's PHPStan config:
42
+ If you also install [ phpstan/extension-installer] ( https://github.com/phpstan/extension-installer ) then you're all set!
43
+
44
+ <details >
45
+ <summary >Manual installation</summary >
46
+
47
+ If you don't want to use ` phpstan/extension-installer ` , include rules.neon in your project's PHPStan config:
42
48
43
49
```
44
50
includes:
45
- - vendor/phpstan/phpstan-strict-rules/rules.neon
51
+ - vendor/phpstan/phpstan-strict-rules/rules.neon
46
52
```
53
+ </details >
54
+
47
55
48
56
## Enabling rules one-by-one
49
57
@@ -61,3 +69,5 @@ services:
61
69
tags:
62
70
- phpstan.rules.rule
63
71
```
72
+
73
+ * Unfortunately, you cannot use phpstan/extension-installer in this case.*
You can’t perform that action at this time.
0 commit comments