From 082efd947d1d0066eeac43937b399b7d15216685 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Fri, 23 May 2025 14:35:18 -0400 Subject: [PATCH 1/4] =?UTF-8?q?=E2=AC=87=EF=B8=8F=20PHP=207.2=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yml | 5 ++++- composer.json | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 17176ef..d78d490 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,6 +14,9 @@ jobs: strategy: matrix: php-version: + - '7.2' + - '7.4' + - '8.0' - '8.1' - '8.2' - '8.3' @@ -39,4 +42,4 @@ jobs: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/composer.json b/composer.json index 11d3619..e2ab7c8 100644 --- a/composer.json +++ b/composer.json @@ -33,17 +33,17 @@ }, "require": { "composer-plugin-api": "^1.0 || ^2.0", - "php": ">=8.1" + "php": ">=7.2.24" }, "require-dev": { "composer/composer": "^1.0 || ^2.0", - "phpunit/phpunit": "^9.6" + "phpunit/phpunit": "^8.0 || ^9.0" }, "conflict": { "composer/installers": "<1.0.6" }, "replace": { - "johnpbloch/wordpress-core-installer":"*" + "johnpbloch/wordpress-core-installer": "*" }, "scripts": { "test:phpunit": "phpunit", From b9d3be6af41a3a5932a7ea0da93d8fafe63cd9be Mon Sep 17 00:00:00 2001 From: Ben Word Date: Fri, 23 May 2025 14:38:27 -0400 Subject: [PATCH 2/4] Update README --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index c7b8211..3689763 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,10 @@ To set up a custom WordPress build package to use this as a custom installer, ad ```json "type": "wordpress-core", "require": { - "roots/wordpress-core-installer": "^2.0" + "roots/wordpress-core-installer": "^3.0" } ``` -If you need to maintain support for PHP versions lower than 8.1 (not recommended!), use `^1.0` as your version constraint in the above. - By default, this package will install a `wordpress-core` type package in the `wordpress` directory. To change this you can add the following to either your custom WordPress core type package or the root composer package: ```json From dca87f94c5c705c45c75618ce97949e01f8fe619 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Fri, 23 May 2025 14:45:03 -0400 Subject: [PATCH 3/4] PHPUnit 8.5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e2ab7c8..538e812 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ }, "require-dev": { "composer/composer": "^1.0 || ^2.0", - "phpunit/phpunit": "^8.0 || ^9.0" + "phpunit/phpunit": "^8.5" }, "conflict": { "composer/installers": "<1.0.6" From 82bfef0de410d677ced468eb14c1d993c9b88a63 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Fri, 23 May 2025 14:46:25 -0400 Subject: [PATCH 4/4] oh --- .github/workflows/tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d78d490..d8bc5e2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,9 +33,6 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --no-progress - - name: Install specific PHPUnit version - run: composer require "phpunit/phpunit:^9.6" --dev - - name: Run tests run: composer test