File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments