Skip to content

Commit 1718536

Browse files
authored
Update Show.php
1 parent 3f89bac commit 1718536

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Commands/Show.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public function execute()
6262
$results = json_decode(implode(PHP_EOL, $output['output']), true);
6363

6464
if ($this->returnArray) {
65-
return $results;
65+
return $this->package
66+
? $results ?? []
67+
: $results['installed'] ?? [];
6668
}
6769

6870
$packages = [];

0 commit comments

Comments
 (0)