Skip to content

Commit db0b16b

Browse files
committed
Leverage non-capturing catches
1 parent 6e0bf37 commit db0b16b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnicodeString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function indexOf(string|iterable|AbstractString $needle, int $offset = 0)
139139

140140
try {
141141
$i = $this->ignoreCase ? grapheme_stripos($this->string, $needle, $offset) : grapheme_strpos($this->string, $needle, $offset);
142-
} catch (\ValueError $e) {
142+
} catch (\ValueError) {
143143
return null;
144144
}
145145

0 commit comments

Comments
 (0)