Skip to content

Commit

Permalink
Fix: Implicitly marking parameter $container as nullable is deprecate…
Browse files Browse the repository at this point in the history
…d in PHP 8.4.

Fixes deprecation where implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead.
  • Loading branch information
daikazu authored and klimov-paul committed Jan 17, 2025
1 parent 14dec57 commit 8a008bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Router extends BaseRouter
/**
* {@inheritdoc}
*/
public function __construct(Dispatcher $events, Container $container = null)
public function __construct(Dispatcher $events, ?Container $container = null)
{
parent::__construct($events, $container);

Expand Down

0 comments on commit 8a008bf

Please sign in to comment.