Skip to content

Commit 2055806

Browse files
Remove always true/false occurrences
1 parent ae7e106 commit 2055806

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Tests/Inflector/SpanishInflectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testPluralize(string $singular, $plural)
151151
public function testUninflected(string $word)
152152
{
153153
$this->assertSame(
154-
\is_array($word) ? $word : [$word],
154+
[$word],
155155
(new SpanishInflector())->pluralize($word)
156156
);
157157
}

Diff for: UnicodeString.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public function splice(string $replacement, int $start = 0, ?int $length = null)
286286
$str = clone $this;
287287

288288
$start = $start ? \strlen(grapheme_substr($this->string, 0, $start)) : 0;
289-
$length = $length ? \strlen(grapheme_substr($this->string, $start, $length ?? 2147483647)) : $length;
289+
$length = $length ? \strlen(grapheme_substr($this->string, $start, $length)) : $length;
290290
$str->string = substr_replace($this->string, $replacement, $start, $length ?? 2147483647);
291291

292292
if (normalizer_is_normalized($str->string)) {

0 commit comments

Comments
 (0)