Skip to content

Commit d883258

Browse files
committed
chore: avoid deprecations in PHP 8.4
1 parent c5fca29 commit d883258

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Exception/AuthenticationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class AuthenticationException extends \RuntimeException implements Excepti
2222
public static function fromFailedAuthentication(
2323
ClientConfiguration $configuration,
2424
int $code = 0,
25-
\Exception $previous = null,
25+
?\Exception $previous = null,
2626
): self {
2727
$message = \sprintf(
2828
'Authentication failed for user "%s" on JobRouter base URL "%s"',

src/Exception/HttpException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function fromError(
3838
int $statusCode,
3939
string $resourceUrl,
4040
string $error,
41-
ClientExceptionInterface $e = null,
41+
?ClientExceptionInterface $e = null,
4242
): self {
4343
$message = \sprintf(
4444
'Error fetching resource "%s": %s',

0 commit comments

Comments
 (0)