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.
1 parent e1084b7 commit 9708028Copy full SHA for 9708028
src/PHP/ComposerRequire.php
@@ -20,6 +20,6 @@ public function __toString(): string
20
return (string) new Dockerfile\Run(sprintf(<<<'RUN'
21
set -ex \
22
&& composer require --prefer-dist --no-progress --prefer-stable --sort-packages --optimize-autoloader --with-dependencies %s
23
- RUN, implode(' ', $this->packages)));
+ RUN, implode(' ', array_map(fn (string $package) => escapeshellarg($package), $this->packages))));
24
}
25
0 commit comments