Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3', '8.4', '8.5']
php-version: ['8.3', '8.4', '8.5']

uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.10.6
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.11.0
with:
php-version: ${{ matrix.php-version }}

Expand All @@ -30,7 +30,7 @@ jobs:
strategy:
fail-fast: false

uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.10.6
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.11.0
with:
enable_eslinter: false
enable_jsonlinter: true
Expand All @@ -45,7 +45,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.2', '8.3', '8.4', '8.5']
php-versions: ['8.3', '8.4', '8.5']

steps:
- name: Setup PHP, with composer and extensions
Expand Down Expand Up @@ -107,15 +107,15 @@ jobs:
fail-fast: true
matrix:
operating-system: [windows-latest]
php-versions: ['8.2', '8.3', '8.4', '8.5']
php-versions: ['8.3', '8.4', '8.5']

steps:
- name: Setup PHP, with composer and extensions
# https://github.com/shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ctype, date, filter, intl, pcre, spl
extensions: ctype, date, filter, intl, pcre, sodium, spl
tools: composer
ini-values: error_reporting=E_ALL
coverage: none
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
# Should be the higest supported version, so we can use the newest tools
php-version: '8.5'
tools: composer, composer-require-checker, composer-unused
extensions: ctype, date, filter, pcre, spl
extensions: ctype, date, filter, pcre, sodium, spl
coverage: none

- name: Setup problem matchers for PHP
Expand Down Expand Up @@ -216,8 +216,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
# Should be the lowest supported version
php-version: '8.2'
extensions: ctype, date, filter, pcre, spl
php-version: '8.3'
extensions: ctype, date, filter, pcre, sodium, spl
tools: composer
coverage: none

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.3",
"ext-date": "*",
"ext-filter": "*",
"ext-pcre": "*",
Expand All @@ -25,7 +25,7 @@
"require-dev": {
"ext-intl": "*",

"simplesamlphp/simplesamlphp-test-framework": "~1.10"
"simplesamlphp/simplesamlphp-test-framework": "~1.11"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 4 additions & 2 deletions src/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@
use function array_unshift;
use function call_user_func_array;
use function end;
use function is_array;
use function is_callable;
use function is_object;
use function is_resource;
use function is_string;
use function is_subclass_of;
use function lcfirst;
use function method_exists;
use function preg_match; // Requires ext-pcre
use function reset;
use function sprintf;
use function strval;

/**
Expand Down Expand Up @@ -389,7 +393,6 @@ public static function __callStatic(string $name, array $arguments): void
*
* @param callable $method
* @param mixed[] $arguments
* @return void
*/
private static function nullOr(callable $method, array $arguments): void
{
Expand All @@ -403,7 +406,6 @@ private static function nullOr(callable $method, array $arguments): void
*
* @param callable $method
* @param mixed[] $arguments
* @return void
*/
private static function all(callable $method, array $arguments): void
{
Expand Down
1 change: 0 additions & 1 deletion src/Base64Trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
trait Base64Trait
{
/** @var string */
private static string $base64_regex = '/^(?:[a-z0-9+\/]{4})*(?:[a-z0-9+\/]{2}==|[a-z0-9+\/]{3}=)?$/i';


Expand Down