Skip to content

Commit d12b01c

Browse files
committed
Allow \Throwable $previous everywhere
1 parent 25dbb9e commit d12b01c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Exception/FileNotFoundException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
class FileNotFoundException extends IOException
2121
{
22-
public function __construct(string $message = null, int $code = 0, \Exception $previous = null, string $path = null)
22+
public function __construct(string $message = null, int $code = 0, \Throwable $previous = null, string $path = null)
2323
{
2424
if (null === $message) {
2525
if (null === $path) {

Exception/IOException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class IOException extends \RuntimeException implements IOExceptionInterface
2222
{
2323
private $path;
2424

25-
public function __construct(string $message, int $code = 0, \Exception $previous = null, string $path = null)
25+
public function __construct(string $message, int $code = 0, \Throwable $previous = null, string $path = null)
2626
{
2727
$this->path = $path;
2828

0 commit comments

Comments
 (0)