Skip to content

Commit dfac645

Browse files
committed
update composer
1 parent 6ef554c commit dfac645

8 files changed

Lines changed: 468 additions & 11 deletions

File tree

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/console-helpers.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dbnavigator.xml

Lines changed: 413 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/sonarlint/issuestore/index.pb

Whitespace-only changes.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Traits/RunCommand.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ public function artisanCommand(array $command, bool|null $withOutput=false): voi
7272
*/
7373
protected function requireComposerPackages(mixed $packages, bool|null $withOutput=false): void
7474
{
75-
$composer = $this->option('composer');
76-
77-
if ($composer !== 'global') {
78-
$command = [$this->phpBinary(), $composer, 'require'];
79-
}
80-
8175
$command = array_merge(
8276
$command ?? ['composer', 'require'],
8377
is_array($packages) ? $packages : func_get_args()
@@ -101,11 +95,6 @@ protected function requireComposerPackages(mixed $packages, bool|null $withOutpu
10195
*/
10296
protected function requireComposerDevPackages(mixed $packages, bool|null $withOutput=false): void
10397
{
104-
$composer = $this->option('composer');
105-
106-
if ($composer !== 'global') {
107-
$command = [$this->phpBinary(), $composer, 'require', '--dev'];
108-
}
10998

11099
$command = array_merge(
111100
$command ?? ['composer', 'require', '--dev'],

0 commit comments

Comments
 (0)