Skip to content

Commit 83335f3

Browse files
authored
Fix invalid doc (#181)
1 parent e9ccfb0 commit 83335f3

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/Input/ChildCommandFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function createChildCommand(InputInterface $input): array
5959
}
6060

6161
/**
62-
* @return list<string>
62+
* @return array<int, string>
6363
*/
6464
private function createBaseCommand(
6565
InputInterface $input

tests/Input/ChildCommandFactoryTest.php

+21
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,27 @@ public static function childProvider(): iterable
270270
],
271271
];
272272
})();
273+
274+
yield 'no PHP executable or command' => (static function () use (
275+
$scriptPath
276+
) {
277+
[$input, $commandDefinition] = self::createInput(
278+
[],
279+
[],
280+
);
281+
282+
return [
283+
'',
284+
$scriptPath,
285+
'',
286+
$commandDefinition,
287+
$input,
288+
[
289+
$scriptPath,
290+
'--child',
291+
],
292+
];
293+
})();
273294
}
274295

275296
public function test_it_cannot_create_a_factory_with_an_invalid_script_path(): void

0 commit comments

Comments
 (0)