1
0
Fork 0
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:
Andre Klapper 2024-11-26 14:53:19 +01:00
parent 6ec5c88bee
commit b253675917
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ class MiddlewareStack
*
* @param Middleware $middleware
*/
public function __construct(MiddleWareContracts $middleware = null)
public function __construct(?MiddleWareContracts $middleware = null)
{
$this->middleware = $middleware;
}

View file

@ -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();