diff --git a/src/MD_STD.php b/src/MD_STD.php index a7eac82..8a5504d 100644 --- a/src/MD_STD.php +++ b/src/MD_STD.php @@ -163,14 +163,12 @@ final class MD_STD { */ public static function startsWithAny(string $haystack, array $needles):bool { - $output = false; foreach ($needles as $needle) { - $output = \str_starts_with($haystack, $needle); - if ($output == true) { - return $output; + if (\str_starts_with($haystack, $needle) === true) { + return true; } } - return $output; + return false; }