From 12e04fe5cc4f8f1ede3dc495236234bf3009bca1 Mon Sep 17 00:00:00 2001 From: Tim Krase <38947626+timkrase@users.noreply.github.com> Date: Fri, 10 Mar 2023 12:25:55 +0100 Subject: [PATCH] Use cpp in monolog console code example --- logging/monolog_console.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/logging/monolog_console.rst b/logging/monolog_console.rst index 008be08a463..fe9758430d6 100644 --- a/logging/monolog_console.rst +++ b/logging/monolog_console.rst @@ -45,11 +45,8 @@ The example above could then be rewritten as:: class YourCommand extends Command { - private $logger; - - public function __construct(LoggerInterface $logger) + public function __construct(private LoggerInterface $logger) { - $this->logger = $logger; } protected function execute(InputInterface $input, OutputInterface $output)