Skip to content

Commit c3aaad7

Browse files
committed
How is callable type node with mixed variadic argument parsed?
1 parent d8d9d46 commit c3aaad7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/PHPStan/Parser/TypeParserTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,12 @@ public function provideParseData(): array
822822
)
823823
),
824824
],
825+
[
826+
'callable(mixed...): TReturn',
827+
new CallableTypeNode(new IdentifierTypeNode('callable'), [
828+
new CallableTypeParameterNode(new IdentifierTypeNode('mixed'), false, true, '', false),
829+
], new IdentifierTypeNode('TReturn')),
830+
],
825831
];
826832
}
827833

0 commit comments

Comments
 (0)