Skip to content

Commit

Permalink
Add explicit nullable type declaration (#50922)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jubeki authored Apr 4, 2024
1 parent b1ee9cd commit b75abb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Logger.php
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ class Logger implements LoggerInterface
* @param \Illuminate\Contracts\Events\Dispatcher|null $dispatcher
* @return void
*/
public function __construct(LoggerInterface $logger, Dispatcher $dispatcher = null)
public function __construct(LoggerInterface $logger, ?Dispatcher $dispatcher = null)
{
$this->logger = $logger;
$this->dispatcher = $dispatcher;

0 comments on commit b75abb0

Please sign in to comment.