Skip to content

Commit 76b8a96

Browse files
committed
Merge branch 'master' into version-1
2 parents f0f99a2 + e191a11 commit 76b8a96

10 files changed

Lines changed: 22 additions & 23 deletions

File tree

.github/workflows/php.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
fail-fast: false
4646
matrix:
4747
operating-system: [ubuntu-latest]
48-
php-versions: ['8.3', '8.4', '8.5']
49-
jwt-version: ['^4.1.3']
48+
php-versions: ['8.2', '8.3', '8.4', '8.5']
49+
jwt-version: ['^3.4', '^4.0.2']
5050

5151
steps:
5252
- name: Setup PHP, with composer and extensions
@@ -89,15 +89,15 @@ jobs:
8989
run: composer install --no-progress --prefer-dist --optimize-autoloader
9090

9191
- name: Run unit tests with coverage
92-
if: ${{ matrix.php-versions == '8.5' && matrix.jwt-version == '^4.1.3' }}
92+
if: ${{ matrix.php-versions == '8.5' && matrix.jwt-version == '^4.0.2' }}
9393
run: vendor/bin/phpunit
9494

9595
- name: Run unit tests (no coverage)
9696
if: ${{ matrix.php-versions != '8.5' }}
9797
run: vendor/bin/phpunit --no-coverage
9898

9999
- name: Save coverage data
100-
if: ${{ matrix.php-versions == '8.5' && matrix.jwt-version == '^4.1.3' }}
100+
if: ${{ matrix.php-versions == '8.5' && matrix.jwt-version == '^4.0.2' }}
101101
uses: actions/upload-artifact@v7
102102
with:
103103
name: coverage-data
@@ -111,8 +111,8 @@ jobs:
111111
fail-fast: true
112112
matrix:
113113
operating-system: [windows-latest]
114-
php-versions: ['8.3', '8.4', '8.5']
115-
jwt-version: ['^4.1.3']
114+
php-versions: ['8.2', '8.4', '8.5']
115+
jwt-version: ['^4.0.2']
116116

117117
steps:
118118
- name: Setup PHP, with composer and extensions
@@ -227,7 +227,7 @@ jobs:
227227
uses: shivammathur/setup-php@v2
228228
with:
229229
# Should be the lowest supported version
230-
php-version: '8.3'
230+
php-version: '8.2'
231231
extensions: ctype, date, dom, filter, hash, mbstring, openssl, pcre, soap, spl, xml
232232
tools: composer
233233
coverage: none

composer.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@
2121
}
2222
},
2323
"require": {
24-
"php": "^8.3",
24+
"php": "^8.2",
2525
"ext-gmp": "*",
2626
"ext-filter": "*",
2727
"ext-mbstring": "*",
2828
"ext-hash": "*",
2929

30-
"guzzlehttp/guzzle": "^7.10",
30+
"guzzlehttp/guzzle": "^7.8",
3131
"psr/http-client": "^1",
3232
"psr/http-message": "^2",
3333
"psr/log": "^3",
3434
"psr/simple-cache": "^3",
35-
"web-token/jwt-library": "^4.1"
35+
"web-token/jwt-library": "^3.4 || ^4.0.2"
3636
},
3737
"require-dev": {
3838
"phpstan/phpstan": "^2.1",
39-
"phpunit/phpunit": "^11 || ^12.3 || ^13",
39+
"phpunit/phpunit": "^10 || ^11",
4040
"rector/rector": "^2.0",
41-
"simplesamlphp/simplesamlphp-test-framework": "^1.11",
42-
"squizlabs/php_codesniffer": "^4"
41+
"simplesamlphp/simplesamlphp-test-framework": "^1",
42+
"squizlabs/php_codesniffer": "^3"
4343
},
4444
"conflict": {
4545
"rector/rector": "2.3.0"
@@ -49,9 +49,7 @@
4949
"cache-dir": "build/composer",
5050
"allow-plugins": {
5151
"dealerdirect/phpcodesniffer-composer-installer": true,
52-
"phpstan/extension-installer": true,
53-
"simplesamlphp/composer-module-installer": true,
54-
"simplesamlphp/composer-xmlprovider-installer": true
52+
"phpstan/extension-installer": true
5553
}
5654
},
5755
"extra": {

src/Decorators/HttpClientDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class HttpClientDecorator
1515
{
16-
public const array DEFAULT_HTTP_CLIENT_CONFIG = [RequestOptions::ALLOW_REDIRECTS => true,];
16+
public const DEFAULT_HTTP_CLIENT_CONFIG = [RequestOptions::ALLOW_REDIRECTS => true,];
1717

1818

1919
public function __construct(public readonly Client $client = new Client(self::DEFAULT_HTTP_CLIENT_CONFIG))

src/Helpers/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class Arr
1010
{
11-
public const int MAX_DEPTH = 99;
11+
public const MAX_DEPTH = 99;
1212

1313

1414
/**

src/SdJwt/Disclosure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Disclosure implements JsonSerializable
1616
/**
1717
* @var non-empty-array<string|int>
1818
*/
19-
public const array FORBIDDEN_NAMES = [
19+
public const FORBIDDEN_NAMES = [
2020
ClaimsEnum::_SdAlg->value,
2121
ClaimsEnum::_Sd->value,
2222
ClaimsEnum::DotDotDot->value,

src/SdJwt/SdJwt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
class SdJwt extends ParsedJws
2323
{
24-
public const string TILDE = '~';
24+
public const TILDE = '~';
2525

2626

2727
public function __construct(

src/VerifiableCredentials/SdJwtVc/SdJwtVc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SdJwtVc extends SdJwt
1717
* As per https://datatracker.ietf.org/doc/html/draft-ietf-oauth-sd-jwt-vc#section-3.2.2.2
1818
* @var string[]
1919
*/
20-
public const array NON_SELECTIVELY_DISCLOSABLE_CLAIMS = [
20+
public const NON_SELECTIVELY_DISCLOSABLE_CLAIMS = [
2121
ClaimsEnum::Iss->value,
2222
ClaimsEnum::Nbf->value,
2323
ClaimsEnum::Exp->value,

tests/src/Help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Help
88
{
9-
public const string DIR_DATA = 'data';
9+
public const DIR_DATA = 'data';
1010

1111

1212
public function getTestRootDir(string ...$pathElements): string

tests/src/Jwks/Factories/JwksDecoratorFactoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#[CoversClass(JwksDecoratorFactory::class)]
1616
#[UsesClass(JwksDecorator::class)]
17+
#[UsesClass(JwksDecoratorFactory::class)]
1718
final class JwksDecoratorFactoryTest extends TestCase
1819
{
1920
protected array $jwksArraySample = [

tests/src/Jws/JwsFetcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function testWillUseJwsExpirationTimeWhenConsideringTtlForCaching(): void
172172
->willReturn(60);
173173

174174
$this->artifactFetcherMock->expects($this->once())->method('cacheIt')
175-
->with($this->isString(), 60, 'uri');
175+
->with($this->isType('string'), 60, 'uri');
176176

177177

178178
$this->sut()->fromNetwork('uri');

0 commit comments

Comments
 (0)