Skip to content

Commit

Permalink
Closure may be a regular class imported by "use"
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Feb 25, 2024
1 parent 31f583b commit acbc914
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/DocBlock/TypeExpressionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ public static function provideGetTypesCases(): iterable

yield ['array < int , callable ( string ) : bool >'];

yield ['Closure<Closure_can_be_regular_class>'];

yield ['Closure(int $a)'];

yield ['Closure(int $a): bool'];
Expand Down

0 comments on commit acbc914

Please sign in to comment.