We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e17d1ec commit 56eb96dCopy full SHA for 56eb96d
Application.php
@@ -322,8 +322,12 @@ public function setVersion($version)
322
*/
323
public function getLongVersion()
324
{
325
- if ('UNKNOWN' !== $this->getName() && 'UNKNOWN' !== $this->getVersion()) {
326
- return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion());
+ if ('UNKNOWN' !== $this->getName()) {
+ if ('UNKNOWN' !== $this->getVersion()) {
327
+ return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion());
328
+ }
329
+
330
+ return sprintf('<info>%s</info>', $this->getName());
331
}
332
333
return '<info>Console Tool</info>';
0 commit comments