Skip to content

Commit

Permalink
Merge pull request #457 from WordPress/fix/455-php72
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Apr 29, 2024
2 parents b15c38e + a279465 commit 51987dc
Show file tree
Hide file tree
Showing 8 changed files with 2,193 additions and 901 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/behat-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ jobs:
fail-fast: true
matrix:
php:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
Expand All @@ -72,11 +70,14 @@ jobs:
- php: '8.2'
wordpress: 'latest'
coverage: true
- php: '7.0'
- php: '7.2'
wordpress: '6.3'
- php: '8.3'
wordpress: 'trunk'
experimental: true
- php: '8.4'
wordpress: 'trunk'
experimental: true
env:
WP_ENV_PHP_VERSION: ${{ matrix.php }}
WP_ENV_CORE: ${{ matrix.wordpress == 'trunk' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wordpress ) }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ jobs:
fail-fast: true
matrix:
php:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
Expand All @@ -60,9 +58,6 @@ jobs:
- php: '8.2'
wordpress: 'latest'
coverage: true
- php: '8.2'
wordpress: 'trunk'
experimental: true
- php: '8.3'
wordpress: 'trunk'
experimental: true
Expand Down
18 changes: 0 additions & 18 deletions build-cs/composer.json

This file was deleted.

43 changes: 17 additions & 26 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7",
"composer/installers": "^v1.12.0 || ^2.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0",
"wp-coding-standards/wpcs": "^3.0.0",
"php": ">=7.2.24",
"composer/installers": "^2.2",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"wp-coding-standards/wpcs": "^3.1.0",
"automattic/vipwpcs": "^3.0.0",
"afragen/wordpress-plugin-readme-parser": "dev-master"
"afragen/wordpress-plugin-readme-parser": "dev-master#67fba498d0b112acf84386b95e4905c539a33f0b"
},
"require-dev": {
"phpcompatibility/php-compatibility": "^9.3",
"phpmd/phpmd": "^2.9",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan": "^1.10",
"slevomat/coding-standard": "^8.9",
"szepeviktor/phpstan-wordpress": "^1.1",
"wp-cli/extension-command": "^2.1",
"wp-cli/wp-cli": "^2.8",
"wp-cli/wp-cli-tests": "^v4.2.9"
Expand All @@ -20,26 +26,11 @@
"behat": "BEHAT_FEATURES_FOLDER=tests/behat/features run-behat-tests",
"behat-rerun": "BEHAT_FEATURES_FOLDER=tests/behat/features rerun-behat-tests",
"prepare-behat-tests": "install-package-tests",
"format": [
"composer --working-dir=build-cs update --no-interaction",
"build-cs/vendor/bin/phpcbf --standard=phpcs.xml.dist"
],
"lint": [
"composer --working-dir=build-cs update --no-interaction",
"build-cs/vendor/bin/phpcs --standard=phpcs.xml.dist"
],
"phpmd": [
"composer --working-dir=build-cs update --no-interaction",
"build-cs/vendor/bin/phpmd . text phpmd.xml"
],
"phpstan": [
"composer --working-dir=build-cs update --no-interaction",
"build-cs/vendor/bin/phpstan analyse --memory-limit=2048M"
],
"test": [
"composer --working-dir=build-phpunit update --no-interaction",
"build-phpunit/vendor/bin/phpunit --verbose"
]
"format": "phpcbf --standard=phpcs.xml.dist",
"lint": "phpcs --standard=phpcs.xml.dist",
"phpmd": "phpmd . text phpmd.xml",
"phpstan": "phpstan analyse --memory-limit=2048M",
"test": "phpunit --verbose"
},
"scripts-descriptions": {
"lint": "Detect coding standards issues",
Expand All @@ -59,7 +50,7 @@
"cweagans/composer-patches": false
},
"platform": {
"php": "7"
"php": "7.2.24"
}
},
"autoload": {
Expand Down
Loading

0 comments on commit 51987dc

Please sign in to comment.