update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
8
vendor/symfony/string/UnicodeString.php
vendored
8
vendor/symfony/string/UnicodeString.php
vendored
@@ -106,7 +106,9 @@ public function endsWith(string|iterable|AbstractString $suffix): bool
|
||||
return false;
|
||||
}
|
||||
|
||||
$grapheme = grapheme_extract($this->string, \strlen($suffix), \GRAPHEME_EXTR_MAXBYTES, \strlen($this->string) - \strlen($suffix)) ?: '';
|
||||
if (false === $grapheme = grapheme_extract($this->string, \strlen($suffix), \GRAPHEME_EXTR_MAXBYTES, \strlen($this->string) - \strlen($suffix))) {
|
||||
$grapheme = '';
|
||||
}
|
||||
|
||||
if ($this->ignoreCase) {
|
||||
return 0 === mb_stripos($grapheme, $suffix, 0, 'UTF-8');
|
||||
@@ -357,7 +359,9 @@ public function startsWith(string|iterable|AbstractString $prefix): bool
|
||||
return false;
|
||||
}
|
||||
|
||||
$grapheme = grapheme_extract($this->string, \strlen($prefix), \GRAPHEME_EXTR_MAXBYTES) ?: '';
|
||||
if (false === $grapheme = grapheme_extract($this->string, \strlen($prefix), \GRAPHEME_EXTR_MAXBYTES)) {
|
||||
$grapheme = '';
|
||||
}
|
||||
|
||||
if ($this->ignoreCase) {
|
||||
return 0 === mb_stripos($grapheme, $prefix, 0, 'UTF-8');
|
||||
|
||||
Reference in New Issue
Block a user