diff --git a/externals/mimemailparser/MiddlewareStack.php b/externals/mimemailparser/MiddlewareStack.php --- a/externals/mimemailparser/MiddlewareStack.php +++ b/externals/mimemailparser/MiddlewareStack.php @@ -29,7 +29,7 @@ * * @param Middleware $middleware */ - public function __construct(MiddleWareContracts $middleware = null) + public function __construct(?MiddleWareContracts $middleware = null) { $this->middleware = $middleware; } diff --git a/externals/mimemailparser/Parser.php b/externals/mimemailparser/Parser.php --- a/externals/mimemailparser/Parser.php +++ b/externals/mimemailparser/Parser.php @@ -74,7 +74,7 @@ * * @param CharsetManager|null $charset */ - public function __construct(CharsetManager $charset = null) + public function __construct(?CharsetManager $charset = null) { if ($charset == null) { $charset = new Charset();