Skip to content

Commit 960054f

Browse files
authored
Make compatible with PHP 8.4
> Http\Client\Common\Plugin\LoggerPlugin::__construct(): Implicitly marking parameter $formatter as nullable is deprecated, the explicit nullable type must be used instead
1 parent ffa3158 commit 960054f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LoggerPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class LoggerPlugin implements Plugin
2323

2424
private $formatter;
2525

26-
public function __construct(LoggerInterface $logger, Formatter $formatter = null)
26+
public function __construct(LoggerInterface $logger, ?Formatter $formatter = null)
2727
{
2828
$this->logger = $logger;
2929
$this->formatter = $formatter ?: new SimpleFormatter();

0 commit comments

Comments
 (0)