+5
-1
lines changedFilter options
+5
-1
lines changed Original file line number Diff line number Diff line change
@@ -94,6 +94,10 @@ public function getVersion(): string
94
94
}
95
95
96
96
// Otherwise fallback to the version as reported by composer
97
-
return $this->version = InstalledVersions::getPrettyVersion('robmorgan/phinx') ?? 'UNKNOWN';
97
+
if (class_exists(InstalledVersions::class)) {
98
+
return $this->version = InstalledVersions::getPrettyVersion('robmorgan/phinx') ?? 'UNKNOWN';
99
+
}
100
+
101
+
return $this->version = 'UNKNOWN';
98
102
}
99
103
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4