Skip to content

Commit

Permalink
Switched from arrow function to closure
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed Oct 4, 2023
1 parent 77c75be commit 8d3aef6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Diff/FilterUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ abstract class FilterUtil
*/
public static function sanitize(array $filter): array
{
return array_filter($filter, fn($e) => in_array($e, ['A', 'C', 'D', 'M', 'R', 'T', 'U', 'X', 'B', '*']) );
return array_filter($filter, function ($e) {
return in_array($e, ['A', 'C', 'D', 'M', 'R', 'T', 'U', 'X', 'B', '*']);
});
}
}



0 comments on commit 8d3aef6

Please sign in to comment.