Skip to content

Commit eda7e39

Browse files
fix input parameter type (#8657)
1 parent fe65053 commit eda7e39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2911,8 +2911,8 @@ The `replaceMatches` method also accepts a closure that will be invoked with eac
29112911
use Illuminate\Support\Str;
29122912
use Illuminate\Support\Stringable;
29132913

2914-
$replaced = Str::of('123')->replaceMatches('/\d/', function (Stringable $match) {
2915-
return '['.$match[0].']';
2914+
$replaced = Str::of('123')->replaceMatches('/\d/', function (array $matches) {
2915+
return '['.$matches[0].']';
29162916
});
29172917

29182918
// '[1][2][3]'

0 commit comments

Comments
 (0)