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)