summaryrefslogtreecommitdiffstats
path: root/phinx-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'phinx-version.patch')
-rw-r--r--phinx-version.patch19
1 files changed, 9 insertions, 10 deletions
diff --git a/phinx-version.patch b/phinx-version.patch
index d1410c8..0262d85 100644
--- a/phinx-version.patch
+++ b/phinx-version.patch
@@ -1,13 +1,12 @@
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)
+--- src/Phinx/Console/PhinxApplication.php.rpm 2019-12-13 09:56:58.153369975 +0100
++++ src/Phinx/Console/PhinxApplication.php 2019-12-13 09:57:01.871352539 +0100
+@@ -56,7 +56,7 @@ class PhinxApplication extends Applicati
+ */
+ public function __construct()
{
- 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.');
++ parent::__construct('Phinx by CakePHP - https://phinx.org.', '@VERSION@');
- parent::__construct('Phinx by CakePHP - https://phinx.org.', $version);
+ $this->addCommands([
+ new Init(),