Skip to content

Commit

Permalink
Add wp-coding-standards/wpcs patching for php8+ fixes (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
defunctl authored Mar 23, 2022
1 parent 4262abd commit 7ded26a
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"require": {
"php": "^7.2 || ^8.0",
"automattic/vipwpcs": "^2.3",
"cweagans/composer-patches": "^1.7",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"slevomat/coding-standard": "^7.0",
Expand All @@ -31,5 +32,13 @@
"dealerdirect/phpcodesniffer-composer-installer": true,
"cweagans/composer-patches": true
}
},
"extra": {
"enable-patching": true,
"patches": {
"wp-coding-standards/wpcs": {
"Add PHP 8 support until WordPress releases a new version": "https://github.com/WordPress/WordPress-Coding-Standards/commit/7cd46bed1e6a7a2af3fe24c7f4a044da3076d8f4.patch"
}
}
}
}
50 changes: 49 additions & 1 deletion composer.lock

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

0 comments on commit 7ded26a

Please sign in to comment.