Skip to content

Commit

Permalink
Merge pull request #88 from humanmade/phpcs-3.3
Browse files Browse the repository at this point in the history
Update PHPCS to v3.4
  • Loading branch information
mikeselander committed Feb 18, 2019
2 parents 54d7b73 + 1224fcd commit a385acf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"type": "project",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.1",
"wp-coding-standards/wpcs": "^0.14.0",
"fig-r/psr2r-sniffer": "^0.5.0",
"squizlabs/php_codesniffer": "~3.2.0"
"squizlabs/php_codesniffer": "~3.4.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
Expand Down
4 changes: 4 additions & 0 deletions tests/FixtureTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public function setUp() {
$this->config->cache = false;
$this->config->standards = [ 'HM' ];

// Keeping the tabWidth set inline with WPCS.
// See: https://github.com/humanmade/coding-standards/pull/88#issuecomment-464076803
$this->config->tabWidth = 4;

$this->ruleset = new Ruleset( $this->config );
}

Expand Down

0 comments on commit a385acf

Please sign in to comment.