Skip to content

Commit

Permalink
Remove always true/false occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Oct 23, 2024
1 parent ae7e106 commit 2055806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Inflector/SpanishInflectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function testPluralize(string $singular, $plural)
public function testUninflected(string $word)
{
$this->assertSame(
\is_array($word) ? $word : [$word],
[$word],
(new SpanishInflector())->pluralize($word)
);
}
Expand Down
2 changes: 1 addition & 1 deletion UnicodeString.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function splice(string $replacement, int $start = 0, ?int $length = null)
$str = clone $this;

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

if (normalizer_is_normalized($str->string)) {
Expand Down

0 comments on commit 2055806

Please sign in to comment.