Apply non-implicit nullables rule

[MAILPOET-6491]
This commit is contained in:
David Remer
2025-03-06 08:16:02 +02:00
committed by Ján Mikláš
parent 540feb6364
commit 0a3d49c0cd
134 changed files with 237 additions and 237 deletions

View File

@@ -20,16 +20,16 @@ abstract class Exception extends PhpException implements RestException {
protected $errors = [];
final public function __construct(
string $message = null,
string $errorCode = null,
Throwable $previous = null
?string $message = null,
?string $errorCode = null,
?Throwable $previous = null
) {
parent::__construct($message ?? __('Unknown error.', 'mailpoet'), 0, $previous);
$this->errorCode = $errorCode ?? 'mailpoet_automation_unknown_error';
}
/** @return static */
public static function create(Throwable $previous = null) {
public static function create(?Throwable $previous = null) {
return new static(null, null, $previous);
}