diff --git a/src/Illuminate/Support/Str.php b/src/Illuminate/Support/Str.php index 2d7d44ecbb74..9759336be350 100644 --- a/src/Illuminate/Support/Str.php +++ b/src/Illuminate/Support/Str.php @@ -1150,7 +1150,7 @@ public static function replaceEnd($search, $replace, $subject) * @param int $limit * @return string|string[]|null */ - public function replaceMatches($pattern, $replace, $subject, $limit = -1) + public static function replaceMatches($pattern, $replace, $subject, $limit = -1) { if ($replace instanceof Closure) { return preg_replace_callback($pattern, $replace, $subject, $limit);