File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,11 @@ public function run($package, $installed = false)
90
90
private function extractVersions ($ packageInfo )
91
91
{
92
92
$ versions = explode (', ' , $ packageInfo [self ::VERSIONS ]);
93
+ $ packageInfo [self ::NEW_VERSIONS ] = [];
94
+ $ packageInfo [self ::AVAILABLE_VERSIONS ] = [];
93
95
94
96
if (count ($ versions ) === 1 ) {
95
97
$ packageInfo [self ::CURRENT_VERSION ] = str_replace ('* ' , '' , $ packageInfo [self ::VERSIONS ]);
96
- $ packageInfo [self ::AVAILABLE_VERSIONS ] = [];
97
98
} else {
98
99
$ currentVersion = array_values (preg_grep ("/^\*.*/ " , $ versions ));
99
100
if ($ currentVersion ) {
@@ -116,8 +117,6 @@ private function extractVersions($packageInfo)
116
117
} else {
117
118
$ packageInfo [self ::NEW_VERSIONS ] = $ packageInfo [self ::AVAILABLE_VERSIONS ];
118
119
}
119
- } else {
120
- $ packageInfo [self ::NEW_VERSIONS ] = [];
121
120
}
122
121
123
122
return $ packageInfo ;
You can’t perform that action at this time.
0 commit comments