diff --git a/Str.php b/Str.php index fc444ba6..56ed9a22 100644 --- a/Str.php +++ b/Str.php @@ -1188,7 +1188,7 @@ public static function replaceEnd($search, $replace, $subject) /** * Replace the patterns matching the given regular expression. * - * @param string $pattern + * @param array|string $pattern * @param \Closure|string $replace * @param array|string $subject * @param int $limit diff --git a/Stringable.php b/Stringable.php index cc1157b5..eb7e3638 100644 --- a/Stringable.php +++ b/Stringable.php @@ -720,7 +720,7 @@ public function replaceEnd($search, $replace) /** * Replace the patterns matching the given regular expression. * - * @param string $pattern + * @param array|string $pattern * @param \Closure|string $replace * @param int $limit * @return static