Skip to content

Commit 513de20

Browse files
authored
Merge pull request #24 from facile-it/dependencies-update-2026-01
dependencies update 2026-01
2 parents 6c6496c + 8c022e6 commit 513de20

14 files changed

+29
-37
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
ARG PHP_VERSION=8.0
2-
FROM php:8.0-cli-alpine
1+
ARG PHP_VERSION=8.1
2+
FROM php:8.1-cli-alpine
33
RUN apk add --no-cache gmp-dev && docker-php-ext-install -j$(nproc) gmp
44
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
5-
&& php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
65
&& php composer-setup.php \
76
&& php -r "unlink('composer-setup.php');" \
87
&& mv composer.phar /usr/local/bin/composer

composer.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"psr/http-message": "^1.0 || ^2.0",
4040
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0",
4141
"spomky-labs/base64url": "^2.0.1",
42-
"symfony/http-client": "^6.0 || ^7.0",
42+
"symfony/http-client": "^6.0 || ^7.0 || ^8.0",
4343
"symfony/polyfill-mbstring": "^1.15",
4444
"web-token/jwt-library": "^3.4"
4545
},
@@ -58,14 +58,12 @@
5858
}
5959
},
6060
"require-dev": {
61-
"facile-it/facile-coding-standard": "^1.2.0",
62-
"friendsofphp/php-cs-fixer": "^3.14.3",
61+
"facile-it/facile-coding-standard": "^1.4.1",
62+
"friendsofphp/php-cs-fixer": "^3.92.3",
6363
"phpspec/prophecy-phpunit": "^2.0.1",
64-
"phpstan/phpstan": "^1.10",
65-
"phpunit/phpunit": "^10.5.20 || ^11.1.0",
64+
"phpunit/phpunit": "^10.5.60 || ^11.5.46 || ^12.0.0",
6665
"spomky-labs/aes-key-wrap": "^7.0",
67-
"vimeo/psalm": "^5.23.1",
68-
"web-token/jwt-library": "^3.4.3"
66+
"vimeo/psalm": "^6.14.3"
6967
},
7068
"scripts": {
7169
"cs-check": "php-cs-fixer fix --dry-run --diff --allow-risky=yes",

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
This file was deleted.

phpstan.neon.dist

Lines changed: 0 additions & 7 deletions
This file was deleted.

psalm.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<psalm
33
errorLevel="1"
4-
phpVersion="8.2"
4+
phpVersion="8.1"
55
resolveFromConfigFile="true"
66
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
77
xmlns="https://getpsalm.org/schema/config"
@@ -26,6 +26,7 @@
2626

2727
<issueHandlers>
2828
<InvalidCatch errorLevel="suppress" />
29+
<MissingOverrideAttribute errorLevel="suppress" />
2930
</issueHandlers>
3031

3132
<stubs>

src/Exception/InvalidArgumentException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44

55
namespace Facile\JoseVerifier\Exception;
66

7+
/**
8+
* @psalm-api
9+
*/
710
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface {}

src/Exception/InvalidTokenClaimException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class InvalidTokenClaimException extends RuntimeException implements InvalidToke
1919
/**
2020
* @param mixed $value
2121
*/
22-
public function __construct(string $message, string $claim, $value, Throwable $previous = null)
22+
public function __construct(string $message, string $claim, $value, ?Throwable $previous = null)
2323
{
2424
parent::__construct($message, 0, $previous);
2525
$this->claim = $claim;

src/Exception/InvalidTokenException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44

55
namespace Facile\JoseVerifier\Exception;
66

7+
/**
8+
* @psalm-api
9+
*/
710
class InvalidTokenException extends RuntimeException implements InvalidTokenExceptionInterface {}

src/Exception/LogicException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44

55
namespace Facile\JoseVerifier\Exception;
66

7+
/**
8+
* @psalm-api
9+
*/
710
class LogicException extends \LogicException implements ExceptionInterface {}

tests/IdTokenVerifierTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Facile\JoseVerifier\IdTokenVerifier;
1515
use Facile\JoseVerifier\JWK\MemoryJwksProvider;
1616
use Jose\Component\KeyManagement\JWKFactory;
17+
use PHPUnit\Framework\Attributes\DataProvider;
1718

1819
use function Facile\JoseVerifier\jose_secret_key;
1920
use function random_bytes;
@@ -493,10 +494,9 @@ public static function verifyIdTokenProvider(): array
493494
}
494495

495496
/**
496-
* @dataProvider verifyIdTokenProvider
497-
*
498497
* @throws Exception
499498
*/
499+
#[DataProvider('verifyIdTokenProvider')]
500500
public function testValidateIdTokenWithAsyKey(array $payload, bool $expected): void
501501
{
502502
if (! $expected) {

0 commit comments

Comments
 (0)