A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cakephp/phinx/commit/83f83ec105e55e3abba7acc23c0272b5fcf66929 below:

Fix error fetching version with custom autoload (#2366) · cakephp/phinx@83f83ec · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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