Skip to content

Commit 8a008bf

Browse files
daikazuklimov-paul
authored andcommitted
Fix: Implicitly marking parameter $container as nullable is deprecated in PHP 8.4.
Fixes deprecation where implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead.
1 parent 14dec57 commit 8a008bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Router extends BaseRouter
2727
/**
2828
* {@inheritdoc}
2929
*/
30-
public function __construct(Dispatcher $events, Container $container = null)
30+
public function __construct(Dispatcher $events, ?Container $container = null)
3131
{
3232
parent::__construct($events, $container);
3333

0 commit comments

Comments
 (0)