We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 803582c commit 24bfd61Copy full SHA for 24bfd61
src/Tag/ListTag.php
@@ -83,7 +83,7 @@ public function setContentTag(int $contentTagType): static
83
protected function readValues(Reader $reader, int $length): array
84
{
85
$values = [];
86
- /** @var Tag $tagClass */
+ /** @var class-string<Tag>|null $tagClass */
87
$tagClass = Tag::getTagClass($this->contentTagType);
88
if (is_null($tagClass)) {
89
throw new Exception("Unknown ListTag content type " . $this->contentTagType);
0 commit comments