Skip to content

Commit 6147412

Browse files
committed
Fix deprications;
1 parent 4ec8d4d commit 6147412

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Exceptions/FileNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class FileNotFoundException extends BaseException
88
{
9-
public function __construct(string $filePath = null)
9+
public function __construct(?string $filePath = null)
1010
{
1111
parent::__construct("Documentation file not found {$filePath}");
1212
}

src/Exceptions/MissedProductionFilePathException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class MissedProductionFilePathException extends Exception
88
{
9-
public function __construct($message = null, $code = 0, Exception $previous = null)
9+
public function __construct($message = null, $code = 0, ?Exception $previous = null)
1010
{
1111
$message = $message ?? 'Production file path missed in config';
1212

src/Exceptions/MissedRemoteDocumentationUrlException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class MissedRemoteDocumentationUrlException extends Exception
88
{
9-
public function __construct($message = null, $code = 0, Exception $previous = null)
9+
public function __construct($message = null, $code = 0, ?Exception $previous = null)
1010
{
1111
$message = $message ?? 'Remote documentation url missed in config. Please set SWAGGER_REMOTE_DRIVER_URL env variable to define this one.';
1212

0 commit comments

Comments
 (0)