From 3f804447424f451ef1251a6bc6e7ab987bf9a35f Mon Sep 17 00:00:00 2001 From: Austin Passy <367897+thefrosty@users.noreply.github.com> Date: Wed, 24 Apr 2024 10:43:46 -0700 Subject: [PATCH] Update dev-dependencies, and bump PHP to ^8.1 (#81) * Update dev-dependencies, and bump PHP to ^8.1 * Remove PHP 8.0, adding 8.3. * Bump PHP test version to 8.1 --- .github/workflows/main.yml | 4 ++-- CHANGELOG.md | 3 +++ composer.json | 19 +++++++++---------- phpcs.xml | 6 +++--- phpunit.xml | 2 +- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc8c359..8d86a0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ on: # Cancels all previous workflow runs for the same branch that have not yet completed. concurrency: # The concurrency group contains the workflow name and the branch name. - group: ${{ github.workflow }}-${{ github.ref }} + group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true jobs: @@ -18,7 +18,7 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest ] - php-versions: [ "8.0", "8.1", "8.2" ] + php-versions: [ "8.1", "8.2", "8.3" ] wp-versions: [ 'latest' ] coverage: [ true ] services: diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d75b30..bc42177 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). # UNRELEASED +## 4.0.0 - 2024-04-24 +- Require PHP >= 8.1 + ## 3.10.0 - 2023-11-10 - Add new Text Array field type. diff --git a/composer.json b/composer.json index 70dd953..047b6ad 100644 --- a/composer.json +++ b/composer.json @@ -18,29 +18,28 @@ }, "optimize-autoloader": true, "platform": { - "php": "8.0" + "php": "8.1" }, "sort-packages": true }, "minimum-stability": "dev", "require": { - "php": "^8.0", + "php": "^8.1", "ext-json": "*", "thefrosty/wp-utilities": "^3.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7", - "ext-simplexml": "*", - "inpsyde/php-coding-standards": "^1.0", - "phpunit/php-code-coverage": "^9", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "inpsyde/php-coding-standards": "dev-development", + "phpunit/php-code-coverage": "^10", "phpcompatibility/php-compatibility": "*", - "phpunit/phpunit": "^9", + "phpunit/phpunit": "^10", "roave/security-advisories": "dev-master", - "roots/wordpress": "~6.2", + "roots/wordpress": "~6.5", "slevomat/coding-standard": "~8.12", "squizlabs/php_codesniffer": "^3.2", - "wp-phpunit/wp-phpunit": "~6.2", - "yoast/phpunit-polyfills": "^1.0.2 || ^2.0" + "wp-phpunit/wp-phpunit": "~6.5", + "yoast/phpunit-polyfills": "^2.0" }, "suggest": { "frontpack/composer-assets-plugin": "Composer plugin for copying of frontend assets into public directory." diff --git a/phpcs.xml b/phpcs.xml index d6316b0..76f2e3a 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -23,9 +23,9 @@ - - - + + + diff --git a/phpunit.xml b/phpunit.xml index 1986f20..f0c1333 100755 --- a/phpunit.xml +++ b/phpunit.xml @@ -12,7 +12,7 @@ - ./tests/unit + ./tests/unit