Skip to content

Commit

Permalink
Use PHPCompatibility sniffs for PHP compat detection
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Oct 27, 2019
1 parent 248b779 commit 67a117f
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"pantheon-systems/pantheon-wordpress-upstream-tests": "dev-master",
"wp-coding-standards/wpcs": "^2.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
"phpunit/phpunit": "^7"
"phpunit/phpunit": "^7",
"phpcompatibility/php-compatibility": "^9.3"
},
"scripts": {
"lint": "@phpcs",
Expand Down
60 changes: 59 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<rule ref="PHPCompatibility"/>

<!-- Minimum PHP and WP versions -->
<config name="testVersion" value="7.1-"/>
<config name="minimum_supported_wp_version" value="4.4"/>

<rule ref="Squiz.Commenting.FunctionComment.MissingParamTag">
<exclude-pattern>*/inc/class-wp-saml-auth-cli.php</exclude-pattern>
Expand Down

0 comments on commit 67a117f

Please sign in to comment.