Skip to content

Commit 37b5136

Browse files
authored
Fix doesntStartWith incorrect test results when passing array of values (#10624)
1 parent eba552c commit 37b5136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ $result = Str::doesntStartWith('This is my name', 'That');
630630
If an array of possible values is passed, the `doesntStartWith` method will return `true` if the string doesn't begin with any of the given values:
631631

632632
```php
633-
$result = Str::doesntStartWith('This is my name', ['This', 'That', 'There']);
633+
$result = Str::doesntStartWith('This is my name', ['What', 'That', 'There']);
634634

635635
// true
636636
```
@@ -2317,7 +2317,7 @@ You may also pass an array of values to determine if the given string doesn't st
23172317
```php
23182318
use Illuminate\Support\Str;
23192319

2320-
$result = Str::of('This is my name')->doesntStartWith(['This', 'That', 'There']);
2320+
$result = Str::of('This is my name')->doesntStartWith(['What', 'That', 'There']);
23212321

23222322
// true
23232323
```

0 commit comments

Comments
 (0)