Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHP 8 compatibility #72

Merged
merged 16 commits into from
Aug 31, 2024
Merged
16 changes: 12 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,23 @@
"sort-packages": true,
"platform": {
"php": "5.6.20"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"10up/wp_mock": "^0.2.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"mockery/mockery": "^0.9.5",
"php-coveralls/php-coveralls": "^2.4",
"phpcompatibility/php-compatibility": "^9.3",
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for PHP 8+ checks since it only lives in the develop.

"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpmd/phpmd": "^2.10",
"phpunit/phpunit": "^5.7",
"wp-coding-standards/wpcs": "^2.3",
"wp-coding-standards/wpcs": "^3.1",
"wpsh/local": "^0.2.3",
"yoast/phpunit-polyfills": "^1.0"
"yoast/phpunit-polyfills": "^2.0"
},
"autoload": {
"classmap": [
Expand All @@ -46,7 +51,10 @@
"scripts": {
"lint": [
"composer validate --no-check-publish --strict",
"phpcs ."
"phpcs"
],
"format": [
"phpcbf"
],
"mess": [
"phpmd ./src text phpmd.xml --suffixes php"
Expand Down
Loading
Loading