diff --git a/src/Entities.php b/src/Entities.php index c841bc2..00f8ac6 100644 --- a/src/Entities.php +++ b/src/Entities.php @@ -370,7 +370,7 @@ final class Entities foreach ($this->entities as $entity) { ['offset' => $offset, 'length' => $length] = $entity; $insertions[$offset] ??= ''; - /** @psalm-suppress PossiblyUndefinedArrayOffset */ + /** @psalm-suppress PossiblyUndefinedArrayOffset, DocblockTypeContradiction */ $insertions[$offset] .= match ($entity['type']) { 'bold' => '', 'italic' => '', @@ -390,6 +390,7 @@ final class Entities default => '', }; $offset += $length; + /** @psalm-suppress DocblockTypeContradiction */ $insertions[$offset] = match ($entity['type']) { "bold" => '', "italic" => '',