Skip to content

Commit

Permalink
Improve PHP 8.x linting
Browse files Browse the repository at this point in the history
The PHPCompatibilityWP package is tied to the 9.x release of the
PHPCompatibility package.

The current 9.3.5 release of PHPCompatibility has not been updated
since December 2019 and I believe is missing quite a few updated
sniffs for PHP 8.x syntax.

See: PHPCompatibility/PHPCompatibility@9.3.5...develop

This labels the PHPCompatibility `develop` branch as a 9.99.99
release, which satisifies the PHPCompatibilityWP requirements and
improves scanning for PHP 8.x compatibility.

See: PHPCompatibility/PHPCompatibilityWP#40 (comment)

Changes:
* `composer config minimum-stability dev`
* `composer require --dev
  phpcompatibility/php-compatibility:"dev-develop as 9.99.99"`
* `composer update phpcompatibility/phpcompatibility-wp`
  • Loading branch information
jeremyfelt committed Aug 4, 2023
1 parent 66caea7 commit bcfcc55
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 26 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"require-dev": {
"squizlabs/php_codesniffer": "3.*",
"phpcompatibility/phpcompatibility-wp": "*",
"wp-coding-standards/wpcs": "dev-develop"
"wp-coding-standards/wpcs": "dev-develop",
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99"
},

"scripts": {
Expand All @@ -32,5 +33,6 @@
"composer/*": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
},
"minimum-stability": "dev"
}
70 changes: 46 additions & 24 deletions composer.lock

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

0 comments on commit bcfcc55

Please sign in to comment.