Skip to content

Commit 18254b5

Browse files
committed
Raise minimum PHP to 8.1 and align CI
1 parent 822b3f7 commit 18254b5

File tree

9 files changed

+23
-15
lines changed

9 files changed

+23
-15
lines changed

.cliff/cliff-readme-txt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tags: marketing, automation, sendinblue, brevo, woocommerce
66
Requires at least: 6.4
77
Tested up to: 6.9
88
Stable tag: 2.0.0
9-
Requires PHP: 8.0
9+
Requires PHP: 8.1
1010
License: GPL-2.0-or-later
1111
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1212

.github/workflows/deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ permissions:
99

1010
jobs:
1111
lint:
12-
name: Lint
12+
name: Lint (PHP ${{ matrix.php-version }})
1313
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php-version: ['8.1', '8.4']
1418
steps:
1519
- name: Checkout code
1620
uses: actions/checkout@v6
@@ -23,7 +27,7 @@ jobs:
2327
- name: Set up PHP
2428
uses: shivammathur/setup-php@v2
2529
with:
26-
php-version: '8.4'
30+
php-version: ${{ matrix.php-version }}
2731
- name: Install Composer packages
2832
run: composer install --prefer-dist --no-progress --no-suggest
2933
- name: Run lint
@@ -39,7 +43,7 @@ jobs:
3943
- name: Set up PHP
4044
uses: shivammathur/setup-php@v2
4145
with:
42-
php-version: '8.4'
46+
php-version: '8.1'
4347
- name: Install Composer packages
4448
run: composer install --no-dev --optimize-autoloader
4549
- name: Clean up old SVN tags

.github/workflows/lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@ jobs:
2323
run: npx prettier --check .
2424

2525
grumphp:
26-
name: GrumPHP
26+
name: GrumPHP (PHP ${{ matrix.php-version }})
2727
runs-on: ubuntu-latest
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
php-version: ['8.1', '8.4']
2832
steps:
2933
- name: Checkout code
3034
uses: actions/checkout@v6
3135
- name: Setup PHP
3236
uses: shivammathur/setup-php@v2
3337
with:
34-
php-version: '8.4'
38+
php-version: ${{ matrix.php-version }}
3539
- name: Install Composer packages
3640
run: composer install --prefer-dist --no-progress --no-suggest
3741
- name: Run GrumPHP

.wordpress-org/blueprints/blueprint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"landingPage": "/wp-admin/options-general.php?page=brevwoo",
33
"preferredVersions": {
4-
"php": "8.0",
4+
"php": "8.1",
55
"wp": "latest"
66
},
77
"phpExtensionBundles": ["kitchen-sink"],

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Once activated, add your [Brevo API key](https://developers.brevo.com/docs/getti
2525
### Requirements
2626

2727
- WordPress 6.4+
28-
- PHP 8.0+
28+
- PHP 8.1+
2929
- WooCommerce 5.5+
3030

3131
## Development

brevwoo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Version: 2.0.0
77
* Requires at least: 6.4
88
* Tested up to: 6.9
9-
* Requires PHP: 8.0
9+
* Requires PHP: 8.1
1010
* Author: Alec Rust
1111
* Author URI: https://www.alecrust.com/
1212
* Developer: Alec Rust

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=8.0",
14+
"php": ">=8.1",
1515
"getbrevo/brevo-php": "^2.0"
1616
},
1717
"require-dev": {
@@ -26,7 +26,7 @@
2626
},
2727
"config": {
2828
"platform": {
29-
"php": "8.0.0"
29+
"php": "8.1.0"
3030
},
3131
"allow-plugins": {
3232
"phpro/grumphp": true,

composer.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: marketing, automation, sendinblue, brevo, woocommerce
44
Requires at least: 6.4
55
Tested up to: 6.9
66
Stable tag: 2.0.0
7-
Requires PHP: 8.0
7+
Requires PHP: 8.1
88
License: GPL-2.0-or-later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010

0 commit comments

Comments
 (0)