Skip to content

Commit

Permalink
Fix scoper (#5739)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Mar 19, 2024
1 parent fd9e172 commit a78fb1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scoper.php
Expand Up @@ -113,10 +113,10 @@ static function (string $filePath, string $prefix, string $content): string {
'return self::pcre(\'preg_replace_callback\', [$pattern, $replacement, $subject, $limit, 0, $flags]);',
<<<'CODE_REPLACE'
if (PHP_VERSION_ID < 70400) {
return self::pcre(\'preg_replace_callback\', [$pattern, $replacement, $subject, $limit]);
return self::pcre('preg_replace_callback', [$pattern, $replacement, $subject, $limit]);
}
return self::pcre(\'preg_replace_callback\', [$pattern, $replacement, $subject, $limit, 0, $flags]);
return self::pcre('preg_replace_callback', [$pattern, $replacement, $subject, $limit, 0, $flags]);
CODE_REPLACE,
$content
);
Expand Down

0 comments on commit a78fb1b

Please sign in to comment.