Skip to content

Commit 54b191f

Browse files
committed
Test pure-callable and pure-Closure
1 parent 793d146 commit 54b191f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/PHPStan/Parser/TypeParserTest.php

+16
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,22 @@ public function provideParseData(): array
768768
new IdentifierTypeNode('Foo')
769769
),
770770
],
771+
[
772+
'pure-callable(): Foo',
773+
new CallableTypeNode(
774+
new IdentifierTypeNode('pure-callable'),
775+
[],
776+
new IdentifierTypeNode('Foo')
777+
),
778+
],
779+
[
780+
'pure-Closure(): Foo',
781+
new CallableTypeNode(
782+
new IdentifierTypeNode('pure-Closure'),
783+
[],
784+
new IdentifierTypeNode('Foo')
785+
),
786+
],
771787
[
772788
'callable(): ?Foo',
773789
new CallableTypeNode(

0 commit comments

Comments
 (0)