Skip to content

Commit

Permalink
Add Troubleshooting section to composer install
Browse files Browse the repository at this point in the history
See #10
  • Loading branch information
sirbrillig committed Nov 12, 2017
1 parent 6505287 commit e586fe2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ You can then include the sniffs by adding a line like the following to [your php

It should just work after that!

#### Troubleshooting

If you see an error like this when trying to install the library, you will need to include stability information in your composer.json.

```
- 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.
```

To fix this, add the following lines to your composer.json file and then try installing again.

```
"minimum-stability": "dev",
"prefer-stable": true,
```

### Standalone

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

0 comments on commit e586fe2

Please sign in to comment.