From f4f667553ed46b2edb4d5c51bf8f9f279f20ce2d 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 @@ public static function insert($str, $data, $options = array()) { $format = sprintf( '/(?