summaryrefslogtreecommitdiffstats
path: root/phinx-version.patch
blob: d1410c8bccc52cc72b6063b4b9a8224c534f323c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -up src/Phinx/Console/PhinxApplication.php.rpm src/Phinx/Console/PhinxApplication.php
--- src/Phinx/Console/PhinxApplication.php.rpm	2018-06-11 12:27:52.883341516 +0200
+++ src/Phinx/Console/PhinxApplication.php	2018-06-11 12:28:29.982556962 +0200
@@ -50,8 +50,7 @@ class PhinxApplication extends Applicati
     public function __construct($version = null)
     {
         if ($version === null) {
-            $composerConfig = json_decode(file_get_contents(__DIR__ . '/../../../composer.json'));
-            $version = $composerConfig->version;
+            $version = '@VERSION@';
         }
 
         parent::__construct('Phinx by CakePHP - https://phinx.org.', $version);