Skip to content

Commit 0dde4f8

Browse files
henzebtaylorotwell
andauthored
[11.x] Replace matches typehint fix (#51095)
* Update Str.php * Update Stringable.php * Update Str.php * Update Stringable.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent ca85d94 commit 0dde4f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Support/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ public static function replaceEnd($search, $replace, $subject)
12001200
* Replace the patterns matching the given regular expression.
12011201
*
12021202
* @param array|string $pattern
1203-
* @param \Closure|string $replace
1203+
* @param \Closure|string[]|string $replace
12041204
* @param array|string $subject
12051205
* @param int $limit
12061206
* @return string|string[]|null

src/Illuminate/Support/Stringable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ public function replaceEnd($search, $replace)
732732
* Replace the patterns matching the given regular expression.
733733
*
734734
* @param array|string $pattern
735-
* @param \Closure|string $replace
735+
* @param \Closure|string[]|string $replace
736736
* @param int $limit
737737
* @return static
738738
*/

0 commit comments

Comments
 (0)