Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop PHP 8.0 Support #129

Merged
merged 4 commits into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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.
Expand All @@ -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)
2 changes: 1 addition & 1 deletion bin/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@

<!-- Loads the PHP Compatibility ruleset. -->
<rule ref="PHPCompatibility"/>
<!-- Check for cross-version support for PHP 8.0 and higher. -->
<config name="testVersion" value="8.0-"/>
<!-- Check for cross-version support for PHP 8.1 and higher. -->
<config name="testVersion" value="8.1-"/>
</ruleset>
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</php>
<testsuites>
<testsuite name="unit">
<directory phpVersion="8.0" phpVersionOperator=">=" suffix="Test.php">./tests/unit</directory>
<directory phpVersion="8.1" phpVersionOperator=">=" suffix="Test.php">./tests/unit</directory>
</testsuite>
</testsuites>
</phpunit>
Loading