From df37dba44808847ccbb90a4ec8a53cb6065e832c Mon Sep 17 00:00:00 2001 From: ADDISON <8360474+ADDISON74@users.noreply.github.com> Date: Wed, 9 Oct 2024 02:09:18 +0300 Subject: [PATCH] Deprecated functionality: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated (#4251) - 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;