From 0c10c1efa541f359393d1313b7a3b3db7cc2f59e Mon Sep 17 00:00:00 2001 From: Yannoff Date: Sat, 16 Sep 2023 14:33:55 +0200 Subject: [PATCH] [application] Fix mono-command name getter --- src/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application.php b/src/Application.php index 6fe7df4..0d766fc 100644 --- a/src/Application.php +++ b/src/Application.php @@ -385,6 +385,6 @@ public function getDefault() throw new LogicException('Mono-command applications need at least 1 command defined'); } - return $commands[0]->getName(); + return current($commands)->getName(); } }