Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Command/CommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use Webmozart\Assert\Assert;

use function array_key_exists;
use function escapeshellarg;
use function is_array;
use function is_string;
use function reset;
Expand Down Expand Up @@ -225,7 +224,7 @@ public static function processConfigureOptionsFromInput(Package $package, InputI

if ($configureOption->needsValue) {
if (is_string($value) && $value !== '') {
$configureOptionsValues[] = '--' . $configureOption->name . '=' . escapeshellarg($value);
$configureOptionsValues[] = '--' . $configureOption->name . '=' . $value;
}

continue;
Expand Down
2 changes: 1 addition & 1 deletion test/behaviour/CliContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function theExtensionShouldHaveBeenBuiltWithOptions(): void
}

Assert::contains($this->output, 'phpize complete.');
Assert::contains($this->output, 'Configure complete with options: --with-hello-name=\'sup\'');
Assert::contains($this->output, 'Configure complete with options: --with-hello-name=sup');
Assert::contains($this->output, 'Build complete:');
}

Expand Down
3 changes: 1 addition & 2 deletions test/unit/Command/CommandHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

use function array_combine;
use function array_map;
use function escapeshellarg;

#[CoversClass(CommandHelper::class)]
final class CommandHelperTest extends TestCase
Expand Down Expand Up @@ -174,7 +173,7 @@ public function testProcessingConfigureOptionsFromInput(): void

self::assertSame(
[
'--with-stuff=' . escapeshellarg('lolz'),
'--with-stuff=lolz',
'--enable-thing',
],
$options,
Expand Down