fix
This commit is contained in:
1 parent
98916e0b23
commit
d1f030542a
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user