summaryrefslogtreecommitdiffstats
path: root/php-victorjonsson-markdowndocs-cli-version.patch
blob: 331e2016c9d6b20026e554504a3571352bbe2ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/PHPDocsMD/Console/CLI.php b/src/PHPDocsMD/Console/CLI.php
index 6befd28..8f4586b 100644
--- a/src/PHPDocsMD/Console/CLI.php
+++ b/src/PHPDocsMD/Console/CLI.php
@@ -14,8 +14,7 @@ class CLI extends Application {

     public function __construct()
     {
-        $json = json_decode(file_get_contents(__DIR__.'/../../../composer.json'));
-        parent::__construct('PHP Markdown Documentation Generator', $json->version);
+        parent::__construct('PHP Markdown Documentation Generator', '__VERSION__');
     }

     /**