Skip to content

Commit

Permalink
Respect no-plugins/no-scripts option value
Browse files Browse the repository at this point in the history
  • Loading branch information
mxr576 authored and localheinz committed Aug 11, 2023
1 parent b714156 commit 584f618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/NormalizeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ private static function updateLockerInWorkingDirectory(
'--ignore-platform-reqs' => true,

Check warning on line 523 in src/Command/NormalizeCommand.php

View workflow job for this annotation

GitHub Actions / Mutation Tests (8.1, locked)

Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ */ private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Input\InputInterface $input, Console\Output\OutputInterface $output, string $workingDirectory) : int { - $parameters = ['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => $input->getOption('no-plugins'), '--no-scripts' => $input->getOption('no-scripts'), '--working-dir' => $workingDirectory]; + $parameters = ['command' => 'update', '--ignore-platform-reqs' => false, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => $input->getOption('no-plugins'), '--no-scripts' => $input->getOption('no-scripts'), '--working-dir' => $workingDirectory]; if ($input->hasParameterOption('--no-ansi')) { $parameters = \array_merge($parameters, ['--no-ansi' => true]); }
'--lock' => true,

Check warning on line 524 in src/Command/NormalizeCommand.php

View workflow job for this annotation

GitHub Actions / Mutation Tests (8.1, locked)

Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ */ private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Input\InputInterface $input, Console\Output\OutputInterface $output, string $workingDirectory) : int { - $parameters = ['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => $input->getOption('no-plugins'), '--no-scripts' => $input->getOption('no-scripts'), '--working-dir' => $workingDirectory]; + $parameters = ['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => false, '--no-autoloader' => true, '--no-plugins' => $input->getOption('no-plugins'), '--no-scripts' => $input->getOption('no-scripts'), '--working-dir' => $workingDirectory]; if ($input->hasParameterOption('--no-ansi')) { $parameters = \array_merge($parameters, ['--no-ansi' => true]); }
'--no-autoloader' => true,
'--no-plugins' => true,
'--no-scripts' => true,
'--no-plugins' => $input->getOption('no-plugins'),
'--no-scripts' => $input->getOption('no-scripts'),
'--working-dir' => $workingDirectory,
];

Expand Down

0 comments on commit 584f618

Please sign in to comment.