Skip to content

Commit e586fe2

Browse files
committed
Add Troubleshooting section to composer install
See #10
1 parent 6505287 commit e586fe2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@ You can then include the sniffs by adding a line like the following to [your php
3838

3939
It should just work after that!
4040

41+
#### Troubleshooting
42+
43+
If you see an error like this when trying to install the library, you will need to include stability information in your composer.json.
44+
45+
```
46+
- sirbrillig/phpcs-variable-analysis dev-master requires roave/security-advisories dev-master -> satisfiable by roave/security-advisories[dev-master] but these conflict with your requirements or minimum-stability.
47+
```
48+
49+
To fix this, add the following lines to your composer.json file and then try installing again.
50+
51+
```
52+
"minimum-stability": "dev",
53+
"prefer-stable": true,
54+
```
55+
4156
### Standalone
4257

4358
1. Install PHP_CodeSniffer by following its [installation instructions](https://github.com/squizlabs/PHP_CodeSniffer#installation) (via Composer, Phar file, PEAR, or Git checkout).

0 commit comments

Comments
 (0)