diff --git a/core/core.php b/core/core.php index 09daa68..b249352 100644 --- a/core/core.php +++ b/core/core.php @@ -35,7 +35,7 @@ function startsWith($haystack, $needle, bool $ignoreCase = false): bool { if ($ignoreCase) { $haystack = strtolower($haystack); - $needle = strtolower($haystack); + $needle = strtolower($needle); } // PHP 8.0 support @@ -55,7 +55,7 @@ function endsWith($haystack, $needle, bool $ignoreCase = false): bool { if ($ignoreCase) { $haystack = strtolower($haystack); - $needle = strtolower($haystack); + $needle = strtolower($needle); } // PHP 8.0 support