Skip to content

Commit 5586dc9

Browse files
committed
[ci-review] Rector Rectify
1 parent 9d193f5 commit 5586dc9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/Parallel/Command/WorkerCommandLineFactory.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function create(
3535
): string {
3636
$workerCommandArray = [
3737
escapeshellarg(PHP_BINARY),
38-
...array_map('escapeshellarg', $this->createTurboExtensionArguments()),
38+
...array_map(escapeshellarg(...), $this->createTurboExtensionArguments()),
3939
escapeshellarg($mainScript),
4040
$workerCommandName,
4141
];

‎tests/Parallel/Command/WorkerCommandLineFactoryTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testSpacedMainScript(): void
5454
$expectedCommand = $this->normalizeExpectedCommandOutput(sprintf(
5555
"'%s' %s'%s' worker --port 2000 --identifier 'identifier' --output-format 'json' --no-ansi 'src'",
5656
PHP_BINARY,
57-
self::turboExtensionArguments(),
57+
$this->turboExtensionArguments(),
5858
self::SPACED_DUMMY_MAIN_SCRIPT
5959
));
6060

@@ -84,7 +84,7 @@ public function test(array $options, string $expectedOptionsSegment): void
8484
$expectedCommand = $this->normalizeExpectedCommandOutput(sprintf(
8585
"'%s' %s'%s' worker%s --port 2000 --identifier 'identifier' --output-format 'json' --no-ansi 'src'",
8686
PHP_BINARY,
87-
self::turboExtensionArguments(),
87+
$this->turboExtensionArguments(),
8888
self::DUMMY_MAIN_SCRIPT,
8989
$expectedOptionsSegment
9090
));
@@ -138,7 +138,7 @@ private function createConfiguration(
138138
/**
139139
* The worker gets PHPStan Turbo through two -d options, when PHPStan ships a binary for this runtime
140140
*/
141-
private static function turboExtensionArguments(): string
141+
private function turboExtensionArguments(): string
142142
{
143143
$extensionPath = TurboExtensionSelector::findExtensionForWorkers();
144144
if ($extensionPath === null) {

0 commit comments

Comments
 (0)