Skip to content

Commit b435622

Browse files
Bugfix
Bugfix for custom logger
1 parent c4c5946 commit b435622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OptimizerChainFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected static function getLogger($config): LoggerInterface
3030
return new DummyLogger();
3131
}
3232

33-
if (! $configuredLogger instanceof LoggerInterface) {
33+
if (! is_a($configuredLogger, LoggerInterface::class, true)) {
3434
throw InvalidConfiguration::notAnLogger($configuredLogger);
3535
}
3636

0 commit comments

Comments
 (0)