Skip to content

Commit 67005de

Browse files
committed
Bump minimum PHP version to 8.2 and start testing on PHP 8.5
1 parent 6c976ef commit 67005de

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/php.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
uses: shivammathur/setup-php@v2
5050
with:
5151
# Should be the higest supported version, so we can use the newest tools
52-
php-version: '8.4'
52+
php-version: '8.5'
5353
tools: composer, composer-require-checker, composer-unused, phpcs, phpstan
5454
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, pdo, posix, spl, xml
5555

@@ -100,7 +100,7 @@ jobs:
100100
uses: shivammathur/setup-php@v2
101101
with:
102102
# Should be the lowest supported version
103-
php-version: '8.1'
103+
php-version: '8.2'
104104
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, pdo, posix, spl, xml
105105
tools: composer
106106
coverage: none
@@ -140,7 +140,7 @@ jobs:
140140
fail-fast: false
141141
matrix:
142142
operating-system: [ubuntu-latest]
143-
php-versions: ['8.1', '8.2', '8.3', '8.4']
143+
php-versions: ['8.2', '8.3', '8.4', '8.5']
144144

145145
steps:
146146
- name: Setup PHP, with composer and extensions
@@ -181,15 +181,15 @@ jobs:
181181
run: composer install --no-progress --prefer-dist --optimize-autoloader
182182

183183
- name: Run unit tests with coverage
184-
if: ${{ matrix.php-versions == '8.4' }}
184+
if: ${{ matrix.php-versions == '8.5' }}
185185
run: vendor/bin/phpunit
186186

187187
- name: Run unit tests (no coverage)
188-
if: ${{ matrix.php-versions != '8.4' }}
188+
if: ${{ matrix.php-versions != '8.5' }}
189189
run: vendor/bin/phpunit --no-coverage
190190

191191
- name: Save coverage data
192-
if: ${{ matrix.php-versions == '8.4' }}
192+
if: ${{ matrix.php-versions == '8.5' }}
193193
uses: actions/upload-artifact@v4
194194
with:
195195
name: coverage-data
@@ -203,7 +203,7 @@ jobs:
203203
fail-fast: true
204204
matrix:
205205
operating-system: [windows-latest]
206-
php-versions: ['8.1', '8.2', '8.3', '8.4']
206+
php-versions: ['8.2', '8.3', '8.4', '8.5']
207207

208208
steps:
209209
- name: Setup PHP, with composer and extensions

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@
3434
}
3535
},
3636
"require": {
37-
"php": "^8.1",
37+
"php": "^8.2",
3838
"ext-pdo": "*",
39-
"simplesamlphp/assert": "^1.2.0",
40-
"simplesamlphp/composer-module-installer": "^1.3.4",
39+
40+
"simplesamlphp/assert": "~1.9.1",
41+
"simplesamlphp/composer-module-installer": "~1.5.0",
4142
"simplesamlphp/simplesamlphp": "^2.2"
4243
},
4344
"require-dev": {
44-
"simplesamlphp/simplesamlphp-test-framework": "^1.7.9"
45+
"simplesamlphp/simplesamlphp-test-framework": "~1.10.3"
4546
},
4647
"support": {
4748
"issues": "https://github.com/simplesamlphp/simplesamlphp-module-sqlauth/issues",

0 commit comments

Comments
 (0)