Skip to content

Commit

Permalink
Adds support for array closures in Generic.CodeAnalysis.UnusedFunctio…
Browse files Browse the repository at this point in the history
…nParameter

Related to #2523
  • Loading branch information
michalbundyra committed Nov 26, 2019
1 parent 80ebd4a commit d6025fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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 @@ -121,3 +121,5 @@ function something($a) {
function myCallback($a, $b, $c, $d) {
return $a * $c;
}

fn ($a, $b, $c) => $b;
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function getWarningList()
106 => 1,
117 => 1,
121 => 2,
125 => 2,
];

}//end getWarningList()
Expand Down

0 comments on commit d6025fa

Please sign in to comment.