Skip to content

Commit b14abcd

Browse files
Specify the php_codesniffer version as 2.*
The WordPress Coding Standards are currently not compatible with the PHPCS 3 release. See: WordPress/WordPress-Coding-Standards#718
1 parent 4e71cb7 commit b14abcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ For the purposes of this document, we're installing PHP CodeSniffer on a project
8484
From the integrated terminal within Visual Studio Code, enter the following command:
8585

8686
```
87-
$ composer require "squizlabs/php_codesniffer=*"
87+
$ composer require "squizlabs/php_codesniffer=2.*"
8888
```
8989

9090
This will create `composer.json`, tell it where to locate the PHP CodeSniffer, and install it in a `vendor` directory. Once this is done, we need the WordPress Coding Standard ruleset.

0 commit comments

Comments
 (0)