Skip to content

Commit a9cbfe9

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: Minor Use cpp in monolog console code example
2 parents c9c8b20 + 12880b8 commit a9cbfe9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

logging/monolog_console.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ The example above could then be rewritten as::
4545

4646
class YourCommand extends Command
4747
{
48-
private $logger;
49-
50-
public function __construct(LoggerInterface $logger)
51-
{
52-
$this->logger = $logger;
48+
public function __construct(
49+
private LoggerInterface $logger,
50+
) {
5351
}
5452

5553
protected function execute(InputInterface $input, OutputInterface $output)

0 commit comments

Comments
 (0)