Skip to content

Commit

Permalink
Add missing type declarations in some anonymous functions at `AddDepe…
Browse files Browse the repository at this point in the history
…ndencyCallsCompilerPass::process()`
  • Loading branch information
phansys authored and greg0ire committed Oct 31, 2020
1 parent 2cd39ab commit be653e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ public function process(ContainerBuilder $container)
} elseif ($container->getParameter('sonata.admin.configuration.sort_admins')) {
$groups = $groupDefaults;

$elementSort = static function (&$element) {
$elementSort = static function (array &$element): void {
usort(
$element['items'],
static function ($a, $b) {
static function (array $a, array $b): int {
$a = !empty($a['label']) ? $a['label'] : $a['admin'];
$b = !empty($b['label']) ? $b['label'] : $b['admin'];

Expand Down

0 comments on commit be653e2

Please sign in to comment.