Skip to content

Commit

Permalink
Test pure-callable and pure-Closure
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 5, 2024
1 parent 793d146 commit 54b191f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/PHPStan/Parser/TypeParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,22 @@ public function provideParseData(): array
new IdentifierTypeNode('Foo')
),
],
[
'pure-callable(): Foo',
new CallableTypeNode(
new IdentifierTypeNode('pure-callable'),
[],
new IdentifierTypeNode('Foo')
),
],
[
'pure-Closure(): Foo',
new CallableTypeNode(
new IdentifierTypeNode('pure-Closure'),
[],
new IdentifierTypeNode('Foo')
),
],
[
'callable(): ?Foo',
new CallableTypeNode(
Expand Down

0 comments on commit 54b191f

Please sign in to comment.