From 8b4865ed2c533d068b0f5b57395d007927e75cfe Mon Sep 17 00:00:00 2001 From: Finlay Metcalfe <43369124+Ofthemasses@users.noreply.github.com> Date: Thu, 16 May 2024 14:04:13 +1200 Subject: [PATCH] FIX Return null error solved for DBQueryBuilder::shouldBuildTraceComment --- src/ORM/Connect/DBQueryBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/Connect/DBQueryBuilder.php b/src/ORM/Connect/DBQueryBuilder.php index 89bc4db79..3bc2720ec 100644 --- a/src/ORM/Connect/DBQueryBuilder.php +++ b/src/ORM/Connect/DBQueryBuilder.php @@ -86,7 +86,7 @@ class DBQueryBuilder if (Environment::hasEnv('SS_TRACE_DB_QUERY_ORIGIN')) { return (bool) Environment::getEnv('SS_TRACE_DB_QUERY_ORIGIN'); } - return static::config()->get('trace_query_origin'); + return static::config()->get('trace_query_origin') ?? false; } /**