Skip to content

Commit

Permalink
Added missing use
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 12, 2019
1 parent e26c085 commit f1d0fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Regex/Regex.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function replace($pattern, $replacement, $subject, $limit = null)
*/
public static function replaceCallback($pattern, callable $callback, $subject, $limit = null)
{
return self::pregAndWrap(function ($subject) use ($pattern, $callback) {
return self::pregAndWrap(function ($subject) use ($pattern, $callback, $limit) {
return (string) @preg_replace_callback($pattern, $callback, $subject, $limit === null ? -1 : $limit);
}, $subject);
}
Expand Down

0 comments on commit f1d0fb7

Please sign in to comment.