Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
12.2
-
None
Description
Formatting is incorrect when a lambda function is used with a return statement.
Example code:
<?php function test(): callable { return function ($test): void { echo "test"; }; }
Actual result:
<?php function test(): callable { return function ($test): void { echo "test"; }; }
Expected result:
<?php function test(): callable { return function ($test): void { echo "test"; }; }