diff --git a/tests/TypeAnnotationTest.php b/tests/TypeAnnotationTest.php index a6d96fc9b9c..9e022f034ec 100644 --- a/tests/TypeAnnotationTest.php +++ b/tests/TypeAnnotationTest.php @@ -653,6 +653,32 @@ public function doStuff(): array { '$output===' => 'list<1|2>', ], ], + 'callableWithReturnTypeWithinParens' => [ + 'code' => ' [ + '$output===' => 'callable():int', + ], + ], + 'callableWithReturnTypeWithoutParens' => [ + 'code' => ' [ + '$output===' => 'callable():int', + ], + ], 'handlesTypeWhichEndsWithRoundBracket' => [ 'code' => '