Skip to content

Commit

Permalink
Logger fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol Wojciechowski committed Mar 19, 2024
1 parent d11df26 commit 15076b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utilities/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}

Expand Down

0 comments on commit 15076b0

Please sign in to comment.