Skip to content

Commit 0068b34

Browse files
authored
Support converting iterable according to PHPDoc
1 parent 33ed90f commit 0068b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ast/AstVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private function createSingleType(
5252
? $param->parts[0]
5353
: $param->name;
5454

55-
if ($typeName === 'array' && $docComment) {
55+
if (($typeName === 'array' || $typeName === 'iterable' || $typeName === 'mixed') && $docComment) {
5656
$docBlockType = $this->parseArrayType($docComment);
5757
if ($docBlockType) {
5858
return SingleType::list($docBlockType);

0 commit comments

Comments
 (0)