From b8cf546e03be2d8b0f1e599ce476d10333d53b1a Mon Sep 17 00:00:00 2001 From: Daniele Faraglia Date: Thu, 8 Feb 2024 14:47:17 +0000 Subject: [PATCH] fix the phpdoc for replaceMatches in Str and Stringable helpers (#49990) --- Str.php | 2 +- Stringable.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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