Skip to content

Commit fe022ee

Browse files
committed
Fix doc comment
1 parent 6cf0c77 commit fe022ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tag/ListTag.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ private function checkTagClass(string $tagClass) : bool{
9898
* Returns $this if the tag values are of type $tagClass, null otherwise.
9999
* The returned value will have the proper PHPStan generic types set if it matches.
100100
*
101-
* If the list is empty and is of TAG_End type, the cast will always succeed, since TAG_End lists
102-
* will have their type updated as soon as a value is inserted. However, casting any other type of
103-
* empty list will fail if the type is incorrect.
101+
* If the list is empty, the cast will always succeed, as empty lists infer their
102+
* type from the first value inserted.
104103
*
105104
* @phpstan-template TTarget of Tag
106105
* @phpstan-param class-string<TTarget> $tagClass

0 commit comments

Comments
 (0)