We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2acb854 commit a117950Copy full SHA for a117950
1 file changed
src/Options.php
@@ -1177,7 +1177,12 @@ private function validateContextLinesOption(?int $contextLines): bool
1177
*/
1178
private function resolveWithLogger(array $options = []): array
1179
{
1180
- return $this->resolver->resolve($options, $this->getLoggerOrNullLogger());
+ /**
1181
+ * @var LoggerInterface $logger
1182
+ */
1183
+ $logger = $options['logger'] ?? $this->getLoggerOrNullLogger();
1184
+
1185
+ return $this->resolver->resolve($options, $logger);
1186
}
1187
1188
/**
0 commit comments