We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23392e4 commit 83f83ecCopy full SHA for 83f83ec
src/Phinx/Console/PhinxApplication.php
@@ -94,6 +94,10 @@ public function getVersion(): string
94
}
95
96
// Otherwise fallback to the version as reported by composer
97
- return $this->version = InstalledVersions::getPrettyVersion('robmorgan/phinx') ?? 'UNKNOWN';
+ if (class_exists(InstalledVersions::class)) {
98
+ return $this->version = InstalledVersions::getPrettyVersion('robmorgan/phinx') ?? 'UNKNOWN';
99
+ }
100
+
101
+ return $this->version = 'UNKNOWN';
102
103
0 commit comments