How is callable type node with mixed variadic argument parsed?

This commit is contained in:
Ondrej Mirtes 2020-04-25 14:17:29 +02:00
parent d8d9d46453
commit c3aaad7ef5
No known key found for this signature in database
GPG Key ID: 8E730BA25823D8B5

View File

@ -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')),
],
];
}