Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 54b191f

Browse files
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

Lines changed: 16 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /