From 68f10dc297cc5b28b092bc61c91c2ea16decb9e5 Mon Sep 17 00:00:00 2001 From: Florin Radica Date: Thu, 17 Jul 2025 10:45:03 +0100 Subject: [PATCH] Fix doesntStartWith incorrect test results when passing array of values --- strings.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strings.md b/strings.md index d4c2484e12..e0c335b64c 100644 --- a/strings.md +++ b/strings.md @@ -630,7 +630,7 @@ $result = Str::doesntStartWith('This is my name', 'That'); 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: ```php -$result = Str::doesntStartWith('This is my name', ['This', 'That', 'There']); +$result = Str::doesntStartWith('This is my name', ['What', 'That', 'There']); // true ``` @@ -2317,7 +2317,7 @@ You may also pass an array of values to determine if the given string doesn't st ```php use Illuminate\Support\Str; -$result = Str::of('This is my name')->doesntStartWith(['This', 'That', 'There']); +$result = Str::of('This is my name')->doesntStartWith(['What', 'That', 'There']); // true ```