We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57d8707 + 14890fd commit 0d9a06dCopy full SHA for 0d9a06d
src/Composer.php
@@ -6,9 +6,20 @@ class Composer extends \Illuminate\Support\Composer
6
{
7
public function installDryRun(string $options = null)
8
9
- $process = $this->getProcess();
+ $composer = $this->findComposer();
10
11
- $process->setCommandLine(trim($this->findComposer().' install --dry-run '.$options));
+ $command = array_merge(
12
+ (array) $composer,
13
+ ['install', '--dry-run'],
14
+ array_filter(array_map('trim', explode(' ', $options)))
15
+ );
16
+
17
+ if (is_array($composer)) {
18
+ $process = $this->getProcess($command);
19
+ } else {
20
+ $process = $this->getProcess();
21
+ $process->setCommandLine(trim(implode(' ', $command)));
22
+ }
23
24
$process->run();
25
0 commit comments