File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 3030
3131Additional rules are coming in subsequent releases!
3232
33- ## Usage
3433
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/ ) :
3637
3738```
3839composer require --dev phpstan/phpstan-strict-rules
3940```
4041
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:
4248
4349```
4450includes:
45- - vendor/phpstan/phpstan-strict-rules/rules.neon
51+ - vendor/phpstan/phpstan-strict-rules/rules.neon
4652```
53+ </details >
54+
4755
4856## Enabling rules one-by-one
4957
@@ -61,3 +69,5 @@ services:
6169 tags:
6270 - phpstan.rules.rule
6371```
72+
73+ * Unfortunately, you cannot use phpstan/extension-installer in this case.*
You can’t perform that action at this time.
0 commit comments