Skip to content

Commit

Permalink
Allow InternalExceptions third parameter to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
usox committed Oct 16, 2024
1 parent b1d4a5c commit 6fc5bd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Exception/InternalException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
abstract class InternalException extends Exception
{
/**
* @param Throwable|null $previous
* @param array<mixed, mixed> $context
*/
public function __construct(
string $message,
int $code,
Throwable $previous = null,
null|Throwable $previous = null,
private readonly array $context = []
) {
parent::__construct($message, $code, $previous);
Expand Down

0 comments on commit 6fc5bd5

Please sign in to comment.