Skip to content

Commit 1a9cad0

Browse files
committed
Allow \Throwable $previous everywhere
1 parent fc63980 commit 1a9cad0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Exception/FormatException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class FormatException extends \LogicException implements ExceptionInterfac
2020
{
2121
private $context;
2222

23-
public function __construct(string $message, FormatExceptionContext $context, int $code = 0, \Exception $previous = null)
23+
public function __construct(string $message, FormatExceptionContext $context, int $code = 0, \Throwable $previous = null)
2424
{
2525
$this->context = $context;
2626

Exception/PathException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
final class PathException extends \RuntimeException implements ExceptionInterface
2020
{
21-
public function __construct(string $path, int $code = 0, \Exception $previous = null)
21+
public function __construct(string $path, int $code = 0, \Throwable $previous = null)
2222
{
2323
parent::__construct(sprintf('Unable to read the "%s" environment file.', $path), $code, $previous);
2424
}

0 commit comments

Comments
 (0)