Skip to content
This repository was archived by the owner on Nov 23, 2020. It is now read-only.

Commit 35d73e0

Browse files
authored
Merge pull request #11 from matlad/install
auto Install support
2 parents ea73498 + ff48475 commit 35d73e0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ and set path to __vendor/matla/phpstancs/bin/phpcs__
2323
You also need allowed inspection from phpcs
2424
![img2](resources/readmeImg/setPhpStorm2.png)
2525
### PhpStan and PhpStanCS setup
26-
phpStan is possible only by file phpstan.neon
26+
Config phpStan is possible only by file phpstan.neon
2727
in root directory of project (location of composer.json).
28-
If file like this exist, than must contain
28+
If file like this exist, than you must install this extension
29+
either automatically using "phpstan/extension-installer" or by including in your phpstan.neon.
30+
eg.
2931
```neon
3032
includes:
3133
- vendor/matla/phpstancs/extension.neon
32-
3334
```
3435
Settings for phpStanCs are in same file.
3536
It is parameter runCS (bool), which turn on/of phpcs inspection which is marget with php stan results.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"require": {
5252
"php": "^7.1",
53-
"phpstan/phpstan": "> 0.9",
53+
"phpstan/phpstan": "> 0.9 < 0.12.0",
5454
"squizlabs/php_codesniffer": "^3.4",
5555
"nette/neon": "> 2.4"
5656
},

0 commit comments

Comments
 (0)