Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Exceptions/FileNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class FileNotFoundException extends BaseException
{
public function __construct(string $filePath = null)
public function __construct(?string $filePath = null)
{
parent::__construct("Documentation file not found {$filePath}");
}
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/MissedProductionFilePathException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class MissedProductionFilePathException extends Exception
{
public function __construct($message = null, $code = 0, Exception $previous = null)
public function __construct($message = null, $code = 0, ?Exception $previous = null)
{
$message = $message ?? 'Production file path missed in config';

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/MissedRemoteDocumentationUrlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/SpecValidation/MissingFieldException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class MissingFieldException extends InvalidSwaggerSpecException
{
public function __construct(array $missingFields, string $parentField = null)
public function __construct(array $missingFields, ?string $parentField = null)
{
$fieldsString = implode(', ', $missingFields);

Expand Down