Skip to content

Commit

Permalink
Merge pull request #11241 from Ofthemasses/patch-1
Browse files Browse the repository at this point in the history
FIX Return null error solved for DBQueryBuilder::shouldBuildTraceComment
  • Loading branch information
GuySartorelli authored Sep 25, 2024
2 parents e344638 + 8b4865e commit c224a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Connect/DBQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private function shouldBuildTraceComment(): bool
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;
}

/**
Expand Down

0 comments on commit c224a84

Please sign in to comment.