Skip to content

Commit 87393dd

Browse files
bensinclairdevin-ai-integration[bot]joshmcrae
authored
[BREAKING] Add PHP 8.1+ support (drops PHP 7.4) (#27)
* Add PHP 8.1-8.4 support - Update composer.json to support PHP versions 7.4 through 8.4 - Update CI workflow to test against PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 - Update composer.lock to reflect new PHP version constraints Co-Authored-By: Ben Sinclair <ben.sinclair@yourgiving.co> * Fix deprecated GitHub Actions versions - Update actions/checkout from v2 to v4 - Update actions/cache from v2 to v4 - Resolves CI failure due to deprecated action versions Co-Authored-By: Ben Sinclair <ben.sinclair@yourgiving.co> * Drop PHP 7.4 support, require PHP >=8.0 for dependency compatibility Co-Authored-By: Ben Sinclair <ben.sinclair@yourgiving.co> * Update phpspec/prophecy to 1.22.0 for PHP 8.2-8.4 compatibility Co-Authored-By: Ben Sinclair <ben.sinclair@yourgiving.co> * Remove explicit upper PHP version * Update composer.lock after removing upper PHP version constraint Co-Authored-By: Ben Sinclair <ben.sinclair@yourgiving.co> * Fix PHP 8.0 compatibility by constraining doctrine/instantiator and symfony/deprecation-contracts Co-Authored-By: Ben Sinclair <ben.sinclair@yourgiving.co> * Fixed deprecated string interpolation method --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Josh McRae <josh.mcrae@tithe.ly>
1 parent e044faf commit 87393dd

File tree

4 files changed

+414
-278
lines changed

4 files changed

+414
-278
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
timeout-minutes: 10
1515
strategy:
1616
matrix:
17-
php-versions: [ '7.4', '8.0' ]
17+
php-versions: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
1818
postgresql-versions: [ '12', '14' ]
1919
name: PHP ${{ matrix.php-versions }} with postgreSQL ${{ matrix.postgresql-versions }}
2020

@@ -34,7 +34,7 @@ jobs:
3434
--health-retries 5
3535
3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3838
name: Check Out Code
3939

4040
- name: Setup PHP
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Cache Composer packages
5050
id: composer-cache
51-
uses: actions/cache@v2
51+
uses: actions/cache@v4
5252
with:
5353
path: vendor
5454
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -73,7 +73,7 @@ jobs:
7373
timeout-minutes: 10
7474
strategy:
7575
matrix:
76-
php-versions: [ '7.4', '8.0' ]
76+
php-versions: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
7777
mysql-versions: [ '5.7', '8.0' ]
7878
name: PHP ${{ matrix.php-versions }} with MySQL ${{ matrix.mysql-versions }}
7979

@@ -89,7 +89,7 @@ jobs:
8989
options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 10
9090

9191
steps:
92-
- uses: actions/checkout@v2
92+
- uses: actions/checkout@v4
9393
name: Check Out Code
9494

9595
- name: Setup PHP
@@ -103,7 +103,7 @@ jobs:
103103

104104
- name: Cache Composer packages
105105
id: composer-cache
106-
uses: actions/cache@v2
106+
uses: actions/cache@v4
107107
with:
108108
path: vendor
109109
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
"type": "library",
55
"license": "MIT",
66
"require": {
7-
"php": ">=7.4",
7+
"php": ">=8.0",
88
"ext-pdo": "*"
99
},
1010
"require-dev": {
1111
"phpunit/phpunit": "^9.4",
12-
"symfony/yaml": "^5.0"
12+
"symfony/yaml": "^5.0",
13+
"phpspec/prophecy": "^1.22.0",
14+
"doctrine/instantiator": "^1.5",
15+
"symfony/deprecation-contracts": "^2.4"
1316
},
1417
"scripts":{
1518
"test": "./vendor/bin/phpunit -c phpunit.xml"

0 commit comments

Comments
 (0)