Skip to content

Commit b025f04

Browse files
committed
fix: Remove v character from version tag
1 parent a43f2d1 commit b025f04

File tree

1 file changed

+1
-1
lines changed
  • engine/Shopware/Plugins/Default/Backend/SwagUpdate/Components

1 file changed

+1
-1
lines changed

engine/Shopware/Plugins/Default/Backend/SwagUpdate/Components/UpdateCheck.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function createVersionFromGithubResponse(string $shopwareVersion, array
134134
private function getRelease(string $shopwareVersion, array $releaseInformation): array
135135
{
136136
foreach ($releaseInformation as $release) {
137-
if (version_compare($shopwareVersion, $release['tag_name'], '>=')) {
137+
if (version_compare($shopwareVersion, ltrim($release['tag_name'], 'v'), '>=')) {
138138
continue;
139139
}
140140

0 commit comments

Comments
 (0)