Skip to content

Commit

Permalink
Deprecated functionality: preg_match(): Passing null to parameter #4
Browse files Browse the repository at this point in the history
…($flags) of type int is deprecated (#4251)

- This PR fixes #4250.
  • Loading branch information
addison74 authored Oct 8, 2024
1 parent da1c749 commit df37dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Model/Translate/Inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df37dba

Please sign in to comment.