diff --git a/src/MD_STD.php b/src/MD_STD.php index 262ad61..1f514f2 100644 --- a/src/MD_STD.php +++ b/src/MD_STD.php @@ -135,6 +135,7 @@ final class MD_STD { /** * Function checking if a string starts with another. + * DEPRECATED. Can be replaced by PHP8's str_starts_with. * * @param string $haystack String to check. * @param string $needle Potential start of $haystack. @@ -164,7 +165,7 @@ final class MD_STD { $output = false; foreach ($needles as $needle) { - $output = self::startsWith($haystack, $needle); + $output = \str_starts_with($haystack, $needle); if ($output == true) { return $output; }