This commit is contained in:
Roman 2021-04-03 12:05:32 +02:00
parent 98916e0b23
commit d1f030542a

@ -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