Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
11.1
Description
Formatting arguments of anonymous function is not consistent with formatting of regular functions.
- In PHP project properties set Formatting - Use project specific options.
- Language: PHP, Category: Spaces
- Check mark Within Parentheses - Method / Function Declaration
- Format code
Actual result:
function fn( $a ) { return $a; } $func = function ($a) use ($x) { return $a + $x; };
Expeceted result:
function fn( $a ) { return $a; } $func = function ( $a ) use ( $x ) { return $a + $x; };
Attachments
Issue Links
- links to