Skip to content

Commit

Permalink
Adds support for array closures in Squiz.Functions.FunctionDeclaratio…
Browse files Browse the repository at this point in the history
…nArgumentSpacing

Related to #2523
  • Loading branch information
michalbundyra committed Nov 26, 2019
1 parent 80ebd4a commit 62ae7e7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function register()
return [
T_FUNCTION,
T_CLOSURE,
T_FN,
];

}//end register()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@ $a = function ($var1, $var2=false) use (
$longVar2 , &$longerVar2,
$muchLongerVar3
) {};

fn ($a,$b = null) => $a($b);
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@ $a = function ($var1, $var2=false) use (
$longVar2, &$longerVar2,
$muchLongerVar3
) {};

fn ($a, $b=null) => $a($b);
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function getErrorList()
102 => 2,
106 => 1,
107 => 2,
111 => 3,
];

}//end getErrorList()
Expand Down

0 comments on commit 62ae7e7

Please sign in to comment.