Skip to content

Commit d81eef9

Browse files
committed
Bump minimum PHP version and fix composer cache
1 parent 47190a9 commit d81eef9

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

.github/workflows/php.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
php-version: ['8.2', '8.3', '8.4', '8.5']
22+
php-version: ['8.3', '8.4', '8.5']
2323

2424
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.11.0
2525
with:
@@ -45,15 +45,15 @@ jobs:
4545
fail-fast: false
4646
matrix:
4747
operating-system: [ubuntu-latest]
48-
php-versions: ['8.2', '8.3', '8.4', '8.5']
48+
php-versions: ['8.3', '8.4', '8.5']
4949

5050
steps:
5151
- name: Setup PHP, with composer and extensions
5252
# https://github.com/shivammathur/setup-php
5353
uses: shivammathur/setup-php@v2
5454
with:
5555
php-version: ${{ matrix.php-versions }}
56-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
56+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, sodium, spl, xml
5757
tools: composer
5858
ini-values: error_reporting=E_ALL
5959
coverage: pcov
@@ -77,7 +77,7 @@ jobs:
7777
- name: Cache composer dependencies
7878
uses: actions/cache@v5
7979
with:
80-
path: $COMPOSER_CACHE
80+
path: ${{ env.COMPOSER_CACHE }}
8181
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
8282
restore-keys: ${{ runner.os }}-composer-
8383

@@ -107,15 +107,16 @@ jobs:
107107
fail-fast: true
108108
matrix:
109109
operating-system: [windows-latest]
110-
php-versions: ['8.2', '8.3', '8.4', '8.5']
110+
php-versions: ['8.3', '8.4', '8.5']
111111

112112
steps:
113113
- name: Setup PHP, with composer and extensions
114114
# https://github.com/shivammathur/setup-php
115115
uses: shivammathur/setup-php@v2
116116
with:
117117
php-version: ${{ matrix.php-versions }}
118-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml, zip
118+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl,\
119+
pcre, posix, sodium, spl, xml, zip
119120
tools: composer
120121
ini-values: error_reporting=E_ALL
121122
coverage: none
@@ -139,7 +140,7 @@ jobs:
139140
- name: Cache composer dependencies
140141
uses: actions/cache@v5
141142
with:
142-
path: $COMPOSER_CACHE
143+
path: ${{ env.COMPOSER_CACHE }}
143144
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
144145
restore-keys: ${{ runner.os }}-composer-
145146

@@ -163,7 +164,7 @@ jobs:
163164
# Should be the higest supported version, so we can use the newest tools
164165
php-version: '8.5'
165166
tools: composer, composer-require-checker, composer-unused
166-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
167+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, sodium, spl, xml
167168

168169
- name: Setup problem matchers for PHP
169170
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -176,7 +177,7 @@ jobs:
176177
- name: Cache composer dependencies
177178
uses: actions/cache@v5
178179
with:
179-
path: $COMPOSER_CACHE
180+
path: ${{ env.COMPOSER_CACHE }}
180181
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
181182
restore-keys: ${{ runner.os }}-composer-
182183

@@ -214,8 +215,8 @@ jobs:
214215
uses: shivammathur/setup-php@v2
215216
with:
216217
# Should be the lowest supported version
217-
php-version: '8.2'
218-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
218+
php-version: '8.3'
219+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, sodium, spl, xml
219220
tools: composer
220221
coverage: none
221222

@@ -230,7 +231,7 @@ jobs:
230231
- name: Cache composer dependencies
231232
uses: actions/cache@v5
232233
with:
233-
path: $COMPOSER_CACHE
234+
path: ${{ env.COMPOSER_CACHE }}
234235
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
235236
restore-keys: ${{ runner.os }}-composer-
236237

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
}
2121
},
2222
"require": {
23-
"php": "^8.2",
23+
"php": "^8.3",
2424
"ext-zlib": "*",
2525

26-
"simplesamlphp/simplesamlphp": "^2.4.0",
27-
"symfony/http-foundation": "^6.4.0"
26+
"simplesamlphp/simplesamlphp": "^2.5@dev",
27+
"symfony/http-foundation": "^7.4"
2828
},
2929
"require-dev": {
30-
"simplesamlphp/simplesamlphp-test-framework": "^1.10.2"
30+
"simplesamlphp/simplesamlphp-test-framework": "^1.11"
3131
},
3232
"config": {
3333
"allow-plugins": {

tests/src/Controller/DebugTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public function testEncode(): void
6363
$response = $c->decode($request);
6464

6565
// Validate response
66-
$this->assertInstanceOf(Template::class, $response);
6766
$this->assertTrue($response->isSuccessful());
6867
}
6968

@@ -83,7 +82,6 @@ public function testDecode(): void
8382
$response = $c->decode($request);
8483

8584
// Validate response
86-
$this->assertInstanceOf(Template::class, $response);
8785
$this->assertTrue($response->isSuccessful());
8886
}
8987

0 commit comments

Comments
 (0)