diff --git a/src/Traits/GetWallets.php b/src/Traits/GetWallets.php index 4606dd4..7c42a98 100644 --- a/src/Traits/GetWallets.php +++ b/src/Traits/GetWallets.php @@ -6,12 +6,10 @@ trait GetWallets { - private function walletsInOrder() + private function walletsInOrder(): array { return array_map( - function ($enumCase) { - return $enumCase->value; - }, + fn ($enumCase) => $enumCase->value, WalletEnums::cases() ); }