Skip to content

Commit

Permalink
Fix PHP 8 compatibility (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd authored Aug 31, 2024
1 parent ecd82f4 commit 838954a
Show file tree
Hide file tree
Showing 20 changed files with 1,108 additions and 309 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: npm run lint

- name: Test
run: npm run test
run: composer test

- name: Check mess
run: npm run mess -- -- --ignore-violations-on-exit
Expand Down
10 changes: 0 additions & 10 deletions Vagrantfile

This file was deleted.

17 changes: 12 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,22 @@
"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",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpmd/phpmd": "^2.10",
"phpunit/phpunit": "^5.7",
"wp-coding-standards/wpcs": "^2.3",
"wpsh/local": "^0.2.3",
"yoast/phpunit-polyfills": "^1.0"
"wp-coding-standards/wpcs": "^3.1",
"yoast/phpunit-polyfills": "^2.0"
},
"autoload": {
"classmap": [
Expand All @@ -46,7 +50,10 @@
"scripts": {
"lint": [
"composer validate --no-check-publish --strict",
"phpcs ."
"phpcs"
],
"format": [
"phpcbf"
],
"mess": [
"phpmd ./src text phpmd.xml --suffixes php"
Expand Down
Loading

0 comments on commit 838954a

Please sign in to comment.