mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-02 19:52:44 +01:00
mimemailparser: Fix implicitly nullable parameter declarations for PHP 8.4
Summary: Backport upstream's 39633e054b
for PHP 8.4 compatibility.
Test Plan: Run static code analysis.
Reviewers: O1 Blessed Committers, valerio.bozzolan
Reviewed By: O1 Blessed Committers, valerio.bozzolan
Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno
Differential Revision: https://we.phorge.it/D25840
This commit is contained in:
parent
6ec5c88bee
commit
b253675917
2 changed files with 2 additions and 2 deletions
2
externals/mimemailparser/MiddlewareStack.php
vendored
2
externals/mimemailparser/MiddlewareStack.php
vendored
|
@ -29,7 +29,7 @@ class MiddlewareStack
|
|||
*
|
||||
* @param Middleware $middleware
|
||||
*/
|
||||
public function __construct(MiddleWareContracts $middleware = null)
|
||||
public function __construct(?MiddleWareContracts $middleware = null)
|
||||
{
|
||||
$this->middleware = $middleware;
|
||||
}
|
||||
|
|
2
externals/mimemailparser/Parser.php
vendored
2
externals/mimemailparser/Parser.php
vendored
|
@ -74,7 +74,7 @@ class Parser
|
|||
*
|
||||
* @param CharsetManager|null $charset
|
||||
*/
|
||||
public function __construct(CharsetManager $charset = null)
|
||||
public function __construct(?CharsetManager $charset = null)
|
||||
{
|
||||
if ($charset == null) {
|
||||
$charset = new Charset();
|
||||
|
|
Loading…
Reference in a new issue