8000 minor #39898 [MonologBridge] Typo in consoleFormatterOptions property… · symfony/symfony@64398da · GitHub
[go: up one dir, main page]

Skip to content

Commit 64398da

Browse files
committed
minor #39898 [MonologBridge] Typo in consoleFormatterOptions property name (HypeMC)
This PR was merged into the 4.4 branch. Discussion ---------- [MonologBridge] Typo in consoleFormatterOptions property name | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Fixes a typo in the property name, see also symfony/monolog-bundle#384 Commits ------- a70b71b Fix typo in property name
2 parents 35c19c8 + a70b71b commit 64398da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe
5151
OutputInterface::VERBOSITY_VERY_VERBOSE => Logger::INFO,
5252
OutputInterface::VERBOSITY_DEBUG => Logger::DEBUG,
5353
];
54-
private $consoleFormaterOptions;
54+
private $consoleFormatterOptions;
5555

5656
/**
5757
* @param OutputInterface|null $output The console output to use (the handler remains disabled when passing null
@@ -60,7 +60,7 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe
6060
* @param array $verbosityLevelMap Array that maps the OutputInterface verbosity to a minimum logging
6161
* level (leave empty to use the default mapping)
6262
*/
63-
public function __construct(OutputInterface $output = null, bool $bubble = true, array $verbosityLevelMap = [], array $consoleFormaterOptions = [])
63+
public function __construct(OutputInterface $output = null, bool $bubble = true, array $verbosityLevelMap = [], array $consoleFormatterOptions = [])
6464
{
6565
parent::__construct(Logger::DEBUG, $bubble);
6666
$this->output = $output;
@@ -69,7 +69,7 @@ public function __construct(OutputInterface $output = null, bool $bubble = true,
6969
$this->verbosityLevelMap = $verbosityLevelMap;
7070
}
7171

72-
$this->consoleFormaterOptions = $consoleFormaterOptions;
72+
$this->consoleFormatterOptions = $consoleFormatterOptions;
7373
}
7474

7575
/**
@@ -167,13 +167,13 @@ protected function getDefaultFormatter()
167167
return new LineFormatter();
168168
}
169169
if (!$this->output) {
170-
return new ConsoleFormatter($this->consoleFormaterOptions);
170+
return new ConsoleFormatter($this->consoleFormatterOptions);
171171
}
172172

173173
return new ConsoleFormatter(array_replace([
174174
'colors' => $this->output->isDecorated(),
175175
'multiline' => OutputInterface::VERBOSITY_DEBUG <= $this->output->getVerbosity(),
176-
], $this->consoleFormaterOptions));
176+
], $this->consoleFormatterOptions));
177177
}
178178

179179
/**

0 commit comments

Comments
 (0)
0