From fa1f817be2aa10dd8a7e7f9fa86e42306ef02b73 Mon Sep 17 00:00:00 2001 From: Diego Surita Date: Fri, 22 Dec 2023 10:01:56 -0300 Subject: [PATCH] Fix passing null deprecation warning on CakeText::insert method Warning message: `Deprecated (8192): preg_quote(): Passing null to parameter #1 ($str) of type string is deprecated [vendor/cakephp/cakephp/lib/Cake/Utility/CakeText.php, line 168]` --- lib/Cake/Utility/CakeText.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Utility/CakeText.php b/lib/Cake/Utility/CakeText.php index cf427ed6e..66f7d8774 100644 --- a/lib/Cake/Utility/CakeText.php +++ b/lib/Cake/Utility/CakeText.php @@ -164,8 +164,8 @@ class CakeText { $format = sprintf( '/(?