diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0abef30..4af5a8c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-version: [ "8.0", "8.1", "8.2" ] + php-version: [ "8.1", "8.2", "8.3" ] steps: - name: Checkout uses: actions/checkout@v4 @@ -51,7 +51,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} strategy: matrix: - php-version: [ "8.0", "8.1", "8.2" ] + php-version: [ "8.1", "8.2", "8.3" ] steps: - name: Checkout uses: actions/checkout@v4 @@ -78,7 +78,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-version: [ "8.0", "8.1", "8.2" ] + php-version: [ "8.1", "8.2", "8.3" ] coverage: [ true ] steps: - name: Checkout @@ -112,7 +112,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-version: [ "8.0", "8.1", "8.2" ] + php-version: [ "8.1", "8.2", "8.3" ] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/README.md b/README.md index 46f5cb0..0e0bc00 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ A library containing my standard development resources to build high quality Wor ### Requirements ``` -PHP >= 8.0 -WordPress >= 6.0 +PHP >= 8.1 +WordPress >= 6.1 ``` | PHP version | WP Utilities | @@ -26,6 +26,7 @@ WordPress >= 6.0 | 7.3 | 2.0.0 | | \>= 7.4 | 2.1.0 | | \>= 8.0 | 3.0 | +| \>= 8.1 | 3.3 | The required WordPress version will always be the most recent point release of the previous major release branch. @@ -39,7 +40,7 @@ compatibility is entirely coincidental. To install this library, use Composer: ``` -composer require thefrosty/wp-utilities:^3.0 +composer require thefrosty/wp-utilities:^3.3 ``` Then follow examples in the [Plugin README](./src/Plugin/README.md) diff --git a/bin/functions.sh b/bin/functions.sh index 2a6a86b..fa9853c 100644 --- a/bin/functions.sh +++ b/bin/functions.sh @@ -6,7 +6,7 @@ set -e # https://stackoverflow.com/a/44750379/558561 -- get the default git branch name DEFAULT_BRANCH=$(git remote show $(git remote) | sed -n '/HEAD branch/s/.*: //p') OTHER_ARGUMENTS=() -PHP_VERSION=${PHP_VERSION:-"8.0"} +PHP_VERSION=${PHP_VERSION:-"8.1"} # Loop through arguments and process them # @ref https://pretzelhands.com/posts/command-line-flags/ diff --git a/composer.json b/composer.json index 0aad4ad..80c190a 100644 --- a/composer.json +++ b/composer.json @@ -17,35 +17,35 @@ }, "optimize-autoloader": true, "platform": { - "php": "8.0" + "php": "8.1" }, "sort-packages": true }, "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": "^8.0 || ^8.1 || ^8.2", + "php": ">=8.1", "ext-json": "*", "ext-openssl": "*", - "johnbillion/args": "^1.1", - "psr/container": "^1.0 || ^2.0", - "symfony/http-foundation": "^5.2 || ~6.0" + "johnbillion/args": "^1.9", + "psr/container": "^2.0", + "symfony/http-foundation": "^6.0 || ^7.0" }, "require-dev": { "ext-simplexml": "*", "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", "phpcompatibility/php-compatibility": "^9.3", "phpmd/phpmd": "^2.13", - "phpunit/php-code-coverage": "^9.2", - "phpunit/phpunit": "^9", + "phpunit/php-code-coverage": "^10", + "phpunit/phpunit": "^10", "pimple/pimple": "^3.5", - "roots/wordpress": "^6.2", + "roots/wordpress": "^6.4", "slevomat/coding-standard": "^8.8", - "squizlabs/php_codesniffer": "^3.7", + "squizlabs/php_codesniffer": "^3.9", "szepeviktor/phpstan-wordpress": "^1.0", - "wp-phpunit/wp-phpunit": "^6.2", + "wp-phpunit/wp-phpunit": "^6.4", "wp-coding-standards/wpcs": "dev-develop", - "yoast/phpunit-polyfills": "^1.0.5 || ^2.0" + "yoast/phpunit-polyfills": "^2.0" }, "suggest": { "jjgrainger/posttypes": "Simple WordPress custom post types." diff --git a/phpcs.xml b/phpcs.xml index a005488..5dea917 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -36,6 +36,6 @@ - - + + diff --git a/phpunit.xml b/phpunit.xml index 382e2c5..c689248 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -20,7 +20,7 @@ - ./tests/unit + ./tests/unit