fix
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user