From aaa76deba08454a1a6f7963ed980dea84bdb84fb Mon Sep 17 00:00:00 2001 From: Callan Stretton Date: Wed, 16 Nov 2022 15:05:26 +1300 Subject: [PATCH] added null coalescing operator to fix deprecation error --- src/Extension/BetterNavigatorExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extension/BetterNavigatorExtension.php b/src/Extension/BetterNavigatorExtension.php index 2fa53a6..72acdc1 100644 --- a/src/Extension/BetterNavigatorExtension.php +++ b/src/Extension/BetterNavigatorExtension.php @@ -49,7 +49,7 @@ class BetterNavigatorExtension extends DataExtension $html = preg_replace( '/(<\/body[^>]*>)/i', $navigatorHTML . '\\1', - $html + $html ?? '' ); if ($result instanceof DBHTMLText) { $result->setValue($html);