From 61e810e76907fb091e7f9370e61b3ccd79244925 Mon Sep 17 00:00:00 2001 From: Paul LE CORRE Date: Sun, 10 Jan 2016 09:05:40 +0100 Subject: [PATCH] [Console] Display console application name even when no version set --- src/Symfony/Component/Console/Application.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index 6140d3af6e..78051c37ec 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -322,8 +322,12 @@ class Application */ public function getLongVersion() { - if ('UNKNOWN' !== $this->getName() && 'UNKNOWN' !== $this->getVersion()) { - return sprintf('%s version %s', $this->getName(), $this->getVersion()); + if ('UNKNOWN' !== $this->getName()) { + if ('UNKNOWN' !== $this->getVersion()) { + return sprintf('%s version %s', $this->getName(), $this->getVersion()); + } + + return sprintf('%s', $this->getName()); } return 'Console Tool';