Skip to content

Commit 397b844

Browse files
authored
Merge pull request #30 from simplesamlphp/feature/php83
Feature/php83
2 parents 1e466b8 + 5e3f505 commit 397b844

4 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/php.yml

Lines changed: 7 additions & 7 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,7 +45,7 @@ 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
@@ -107,15 +107,15 @@ 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, filter, intl, pcre, spl
118+
extensions: ctype, date, filter, intl, pcre, sodium, spl
119119
tools: composer
120120
ini-values: error_reporting=E_ALL
121121
coverage: none
@@ -164,7 +164,7 @@ jobs:
164164
# Should be the higest supported version, so we can use the newest tools
165165
php-version: '8.5'
166166
tools: composer, composer-require-checker, composer-unused
167-
extensions: ctype, date, filter, pcre, spl
167+
extensions: ctype, date, filter, pcre, sodium, spl
168168
coverage: none
169169

170170
- name: Setup problem matchers for PHP
@@ -216,8 +216,8 @@ jobs:
216216
uses: shivammathur/setup-php@v2
217217
with:
218218
# Should be the lowest supported version
219-
php-version: '8.2'
220-
extensions: ctype, date, filter, pcre, spl
219+
php-version: '8.3'
220+
extensions: ctype, date, filter, pcre, sodium, spl
221221
tools: composer
222222
coverage: none
223223

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
],
1515
"require": {
16-
"php": "^8.2",
16+
"php": "^8.3",
1717
"ext-date": "*",
1818
"ext-filter": "*",
1919
"ext-pcre": "*",
@@ -25,7 +25,7 @@
2525
"require-dev": {
2626
"ext-intl": "*",
2727

28-
"simplesamlphp/simplesamlphp-test-framework": "~1.10"
28+
"simplesamlphp/simplesamlphp-test-framework": "~1.11"
2929
},
3030
"autoload": {
3131
"psr-4": {

src/Assert.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@
1616
use function array_unshift;
1717
use function call_user_func_array;
1818
use function end;
19+
use function is_array;
20+
use function is_callable;
1921
use function is_object;
2022
use function is_resource;
2123
use function is_string;
2224
use function is_subclass_of;
2325
use function lcfirst;
2426
use function method_exists;
2527
use function preg_match; // Requires ext-pcre
28+
use function reset;
29+
use function sprintf;
2630
use function strval;
2731

2832
/**
@@ -389,7 +393,6 @@ public static function __callStatic(string $name, array $arguments): void
389393
*
390394
* @param callable $method
391395
* @param mixed[] $arguments
392-
* @return void
393396
*/
394397
private static function nullOr(callable $method, array $arguments): void
395398
{
@@ -403,7 +406,6 @@ private static function nullOr(callable $method, array $arguments): void
403406
*
404407
* @param callable $method
405408
* @param mixed[] $arguments
406-
* @return void
407409
*/
408410
private static function all(callable $method, array $arguments): void
409411
{

src/Base64Trait.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717
trait Base64Trait
1818
{
19-
/** @var string */
2019
private static string $base64_regex = '/^(?:[a-z0-9+\/]{4})*(?:[a-z0-9+\/]{2}==|[a-z0-9+\/]{3}=)?$/i';
2120

2221

0 commit comments

Comments
 (0)