From 8d25859de707d041b4f020077e55781e725cc48b Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Mon, 5 Apr 2021 13:43:32 +0000 Subject: [PATCH] [LOG] Only try to log if setup, so logs can be disabled, in tests, for instance --- src/Core/Log.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Core/Log.php b/src/Core/Log.php index 0cfd58acaa..1d3ca49500 100644 --- a/src/Core/Log.php +++ b/src/Core/Log.php @@ -47,6 +47,8 @@ abstract class Log */ public static function __callStatic(string $name, array $args) { - return self::$logger->{$name}(...$args); + if (isset(self::$logger)) { + return self::$logger->{$name}(...$args); + } } }