From 0cbe06e28b5d95766ee00400e8bd88b69c19548c Mon Sep 17 00:00:00 2001 From: ADDISON <8360474+ADDISON74@users.noreply.github.com> Date: Sun, 6 Oct 2024 19:18:25 +0300 Subject: [PATCH] Deprecated functionality: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated - This PR fixes #4250. --- app/code/core/Mage/Core/Model/Translate/Inline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Core/Model/Translate/Inline.php b/app/code/core/Mage/Core/Model/Translate/Inline.php index 5a603a1e8a8..a15bf1c4b2c 100644 --- a/app/code/core/Mage/Core/Model/Translate/Inline.php +++ b/app/code/core/Mage/Core/Model/Translate/Inline.php @@ -518,7 +518,7 @@ private function findEndOfTag($body, $tagName, $from) } $length = $end - $from + $tagLength + 3; } - if (preg_match('#<\\\\?\/' . $tagName . '\s*?>#i', $body, $tagMatch, null, $end)) { + if (preg_match('#<\\\\?\/' . $tagName . '\s*?>#i', $body, $tagMatch, 0, $end)) { return $end + strlen($tagMatch[0]); } else { return false;