From c95ad24be5a668aceb52b0abedb83c0922e2d2b3 Mon Sep 17 00:00:00 2001 From: Colin O'Dell Date: Sat, 7 Dec 2024 08:57:09 -0500 Subject: [PATCH] Ignore phpstan false positive --- src/Normalizer/SlugNormalizer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Normalizer/SlugNormalizer.php b/src/Normalizer/SlugNormalizer.php index d41ea24c17..7cfb960e3c 100644 --- a/src/Normalizer/SlugNormalizer.php +++ b/src/Normalizer/SlugNormalizer.php @@ -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; } }