From 15076b0081da715d97434aad6dccfaeb703854c6 Mon Sep 17 00:00:00 2001 From: Karol Wojciechowski Date: Tue, 19 Mar 2024 16:28:08 +0100 Subject: [PATCH] Logger fix --- src/Utilities/Logger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utilities/Logger.php b/src/Utilities/Logger.php index a079ccf..a480b7f 100644 --- a/src/Utilities/Logger.php +++ b/src/Utilities/Logger.php @@ -35,7 +35,7 @@ public static function disableLogging() */ public static function setLogger($logger) { - if (LoggerInterface::class !== get_class($logger)) { + if (false === ($logger instanceof LoggerInterface::class)) { throw new TException(sprintf('%s is not instance of LoggerInterface', get_class($logger))); }