diff --git a/src/Exception/FirstNameNotFoundException.php b/src/Exception/FirstNameNotFoundException.php index f12c3ef..468f288 100644 --- a/src/Exception/FirstNameNotFoundException.php +++ b/src/Exception/FirstNameNotFoundException.php @@ -24,7 +24,7 @@ class FirstNameNotFoundException extends NameParsingException /** * {@inheritdoc} */ - public function __construct($message = null, $code = 0, \Throwable $previous = null) + public function __construct($message = null, $code = 0, ?\Throwable $previous = null) { parent::__construct($message ? $message : self::MESSAGE, $code, $previous); } diff --git a/src/Exception/FlipStringException.php b/src/Exception/FlipStringException.php index 527f6bd..dc08e4d 100644 --- a/src/Exception/FlipStringException.php +++ b/src/Exception/FlipStringException.php @@ -26,7 +26,7 @@ class FlipStringException extends NameParsingException /** * {@inheritdoc} */ - public function __construct($char = null, $full_name = null, $message = null, $code = 0, Throwable $previous = null) + public function __construct($char = null, $full_name = null, $message = null, $code = 0, ?Throwable $previous = null) { $message = sprintf(self::MESSAGE, $char, $full_name); parent::__construct($message, $code, $previous); diff --git a/src/Exception/IncorrectInputException.php b/src/Exception/IncorrectInputException.php index 5dc139c..bf2a65c 100644 --- a/src/Exception/IncorrectInputException.php +++ b/src/Exception/IncorrectInputException.php @@ -25,7 +25,7 @@ class IncorrectInputException extends NameParsingException /** * {@inheritdoc} */ - public function __construct($message = null, $code = 0, \Throwable $previous = null) + public function __construct($message = null, $code = 0, ?\Throwable $previous = null) { parent::__construct($message ? $message : self::MESSAGE, $code, $previous); } diff --git a/src/Exception/LastNameNotFoundException.php b/src/Exception/LastNameNotFoundException.php index f83737b..8a1428f 100644 --- a/src/Exception/LastNameNotFoundException.php +++ b/src/Exception/LastNameNotFoundException.php @@ -25,7 +25,7 @@ class LastNameNotFoundException extends NameParsingException /** * {@inheritdoc} */ - public function __construct($message = null, $code = 0, \Throwable $previous = null) + public function __construct($message = null, $code = 0, ?\Throwable $previous = null) { parent::__construct($message ? $message : self::MESSAGE, $code, $previous); } diff --git a/src/Exception/ManyMiddleNamesException.php b/src/Exception/ManyMiddleNamesException.php index 767d8c9..a378af5 100644 --- a/src/Exception/ManyMiddleNamesException.php +++ b/src/Exception/ManyMiddleNamesException.php @@ -24,7 +24,7 @@ class ManyMiddleNamesException extends NameParsingException /** * {@inheritdoc} */ - public function __construct($count = null, $message = null, $code = 0, \Throwable $previous = null) + public function __construct($count = null, $message = null, $code = 0, ?\Throwable $previous = null) { $message = sprintf(self::MESSAGE, $count); parent::__construct($message, $code, $previous); diff --git a/src/Exception/MultipleMatchesException.php b/src/Exception/MultipleMatchesException.php index eea75de..0af3600 100644 --- a/src/Exception/MultipleMatchesException.php +++ b/src/Exception/MultipleMatchesException.php @@ -25,7 +25,7 @@ class MultipleMatchesException extends NameParsingException /** * {@inheritdoc} */ - public function __construct($message = null, $code = 0, \Throwable $previous = null) + public function __construct($message = null, $code = 0, ?\Throwable $previous = null) { parent::__construct($message ? $message : self::MESSAGE, $code, $previous); } diff --git a/src/Exception/NameParsingException.php b/src/Exception/NameParsingException.php index 11f7e54..efb2911 100644 --- a/src/Exception/NameParsingException.php +++ b/src/Exception/NameParsingException.php @@ -24,7 +24,7 @@ class NameParsingException extends \Exception * @param \Throwable|null $previous * Previously chained error. */ - public function __construct($message, $code = 0, \Throwable $previous = null) + public function __construct($message, $code = 0, ?\Throwable $previous = null) { parent::__construct($message, $code, $previous); }