Skip to content

Commit

Permalink
Update dev-dependencies, and bump PHP to ^8.1 (#81)
Browse files Browse the repository at this point in the history
* Update dev-dependencies, and bump PHP to ^8.1

* Remove PHP 8.0, adding 8.3.

* Bump PHP test version to 8.1
  • Loading branch information
thefrosty authored Apr 24, 2024
1 parent 6aa3792 commit 3f80444
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
19 changes: 9 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
6 changes: 3 additions & 3 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<!-- For CI, don't fail on warnings -->
<config name="ignore_warnings_on_exit" value="1"/>
<!-- Sets the minimum supported WP version -->
<config name="minimum_supported_wp_version" value="6.1"/>
<!-- Check for cross-version support for PHP 8.0 and higher. -->
<config name="testVersion" value="8.0-"/>
<config name="minimum_supported_wp_version" value="6.4"/>
<!-- Check for cross-version support for PHP 8.1 and higher. -->
<config name="testVersion" value="8.1-"/>

<rule ref="WordPress-Docs">
<exclude name="Generic.Commenting.DocComment.SpacingBeforeTags"/>
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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>

Expand Down

0 comments on commit 3f80444

Please sign in to comment.