Skip to content

Commit 70aa5be

Browse files
committed
chore: make nullable parameter explicit
1 parent ceb9f23 commit 70aa5be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Gaufrette/Exception/FileAlreadyExists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class FileAlreadyExists extends \RuntimeException implements Exception
1313
{
1414
private $key;
1515

16-
public function __construct($key, $code = 0, \Exception $previous = null)
16+
public function __construct($key, $code = 0, ?\Exception $previous = null)
1717
{
1818
$this->key = $key;
1919

src/Gaufrette/Exception/FileNotFound.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class FileNotFound extends \RuntimeException implements Exception
1313
{
1414
private $key;
1515

16-
public function __construct($key, $code = 0, \Exception $previous = null)
16+
public function __construct($key, $code = 0, ?\Exception $previous = null)
1717
{
1818
$this->key = $key;
1919

src/Gaufrette/Exception/UnexpectedFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class UnexpectedFile extends \RuntimeException implements Exception
1313
{
1414
private $key;
1515

16-
public function __construct($key, $code = 0, \Exception $previous = null)
16+
public function __construct($key, $code = 0, ?\Exception $previous = null)
1717
{
1818
$this->key = $key;
1919

0 commit comments

Comments
 (0)