summaryrefslogtreecommitdiffstats
path: root/php-victorjonsson-markdowndocs-cli-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-victorjonsson-markdowndocs-cli-version.patch')
-rw-r--r--php-victorjonsson-markdowndocs-cli-version.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/php-victorjonsson-markdowndocs-cli-version.patch b/php-victorjonsson-markdowndocs-cli-version.patch
new file mode 100644
index 0000000..331e201
--- /dev/null
+++ b/php-victorjonsson-markdowndocs-cli-version.patch
@@ -0,0 +1,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__');
+ }
+
+ /**