diff --git a/composer.json b/composer.json index 7ce73841..35b6d721 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/tests/FixtureTests.php b/tests/FixtureTests.php index 4f10b081..fbb6df9e 100644 --- a/tests/FixtureTests.php +++ b/tests/FixtureTests.php @@ -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 ); }