Run Rector on your code to see what it can do for you:
<?php -$result = array_map(array: $items, callback: fn ($item) => $item * 2); +$result = array_map(array: $items, callback: fn ($item): int|float => $item * 2 array: $items, callback: fn ($item) => $item * 2);
Applied Rules:
Not a change you expect?
rector.php