Skip to content

Commit df37dba

Browse files
authored
Deprecated functionality: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated (#4251)
- This PR fixes #4250.
1 parent da1c749 commit df37dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Core/Model/Translate/Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ private function findEndOfTag($body, $tagName, $from)
518518
}
519519
$length = $end - $from + $tagLength + 3;
520520
}
521-
if (preg_match('#<\\\\?\/' . $tagName . '\s*?>#i', $body, $tagMatch, null, $end)) {
521+
if (preg_match('#<\\\\?\/' . $tagName . '\s*?>#i', $body, $tagMatch, 0, $end)) {
522522
return $end + strlen($tagMatch[0]);
523523
} else {
524524
return false;

0 commit comments

Comments
 (0)