From 5e9caf3da1d24fc89e2ae52d2783e3bf8643bcbb Mon Sep 17 00:00:00 2001 From: hbgamra Date: Fri, 15 Dec 2023 10:05:27 +0100 Subject: [PATCH] Update ListUsersCommand.php Put array return type --- src/Command/ListUsersCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/ListUsersCommand.php b/src/Command/ListUsersCommand.php index 9576a1ede..0ac76457b 100644 --- a/src/Command/ListUsersCommand.php +++ b/src/Command/ListUsersCommand.php @@ -93,7 +93,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int // Use ->findBy() instead of ->findAll() to allow result sorting and limiting $allUsers = $this->users->findBy([], ['id' => 'DESC'], $maxResults); - $createUserArray = static function (User $user) { + $createUserArray = static function (User $user): array { return [ $user->getId(), $user->getFullName(),