Skip to content

Commit efbac5b

Browse files
committed
Fix command flag handling in getComposerOutdatedPackages for correct execution
1 parent 4fd328c commit efbac5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Helpers/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function getComposerOutdatedPackages($flag = '--no-dev')
3434
{
3535
$composer = config('app.composer');
3636
$home = config('app.composer_home');
37-
$process = Process::fromShellCommandline($composer.' outdated {flag} -f json', base_path(), ['COMPOSER_HOME' => $home]);
37+
$process = Process::fromShellCommandline($composer.' outdated '.$flag.' -f json', base_path(), ['COMPOSER_HOME' => $home]);
3838
$process->run();
3939
$value = $process->getOutput();
4040
$data = json_decode($value, true);

0 commit comments

Comments
 (0)