Skip to content

Commit 716e782

Browse files
author
Ivan Gavryshko
committed
MAGETWO-41177: Consolidate one algorithm for populating system packages for upgrade and other tasks (composer Lib)
- removed current version from new_versions
1 parent 7bc49c3 commit 716e782

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/InfoCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ private function extractVersions($packageInfo)
113113
$packageInfo[self::NEW_VERSIONS][] = $version;
114114
}
115115
}
116-
$packageInfo[self::NEW_VERSIONS][] = $packageInfo[self::CURRENT_VERSION];
117116
} else {
118117
$packageInfo[self::NEW_VERSIONS] = $packageInfo[self::AVAILABLE_VERSIONS];
119118
}

tests/Composer/InfoCommandTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ public function getCommandOutputDataProvider()
130130
'1.2.0'
131131
],
132132
'new_versions' => [
133-
'1.2.0',
134-
'1.1.2'
133+
'1.2.0'
135134
]
136135
]
137136
],

0 commit comments

Comments
 (0)