Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 6fc5bd5

Browse files
committed
Allow InternalExceptions third parameter to be null
1 parent b1d4a5c commit 6fc5bd5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Exception/InternalException.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
abstract class InternalException extends Exception
1111
{
1212
/**
13-
* @param Throwable|null $previous
1413
* @param array<mixed, mixed> $context
1514
*/
1615
public function __construct(
1716
string $message,
1817
int $code,
19-
Throwable $previous = null,
18+
null|Throwable $previous = null,
2019
private readonly array $context = []
2120
) {
2221
parent::__construct($message, $code, $previous);

0 commit comments

Comments
 (0)