mirror of
https://github.com/danog/phpdoc-parser.git
synced 2024-11-30 04:29:20 +01:00
How is callable type node with mixed variadic argument parsed?
This commit is contained in:
parent
d8d9d46453
commit
c3aaad7ef5
@ -822,6 +822,12 @@ class TypeParserTest extends \PHPUnit\Framework\TestCase
|
||||
)
|
||||
),
|
||||
],
|
||||
[
|
||||
'callable(mixed...): TReturn',
|
||||
new CallableTypeNode(new IdentifierTypeNode('callable'), [
|
||||
new CallableTypeParameterNode(new IdentifierTypeNode('mixed'), false, true, '', false),
|
||||
], new IdentifierTypeNode('TReturn')),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user