Skip to content

Commit

Permalink
Ignore phpstan false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Dec 7, 2024
1 parent ceb835f commit c95ad24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Normalizer/SlugNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function normalize(string $text, array $context = []): string
$slug = \mb_substr($slug, 0, $length, 'UTF-8');
}

// @phpstan-ignore-next-line Because it thinks mb_substr() returns false on PHP 7.4
return $slug;
}
}

0 comments on commit c95ad24

Please sign in to comment.