diff --git a/src/Input/ChildCommandFactory.php b/src/Input/ChildCommandFactory.php index d97e3ae..e043ada 100644 --- a/src/Input/ChildCommandFactory.php +++ b/src/Input/ChildCommandFactory.php @@ -59,7 +59,7 @@ public function createChildCommand(InputInterface $input): array } /** - * @return list + * @return array */ private function createBaseCommand( InputInterface $input diff --git a/tests/Input/ChildCommandFactoryTest.php b/tests/Input/ChildCommandFactoryTest.php index 566ade3..8594dcb 100644 --- a/tests/Input/ChildCommandFactoryTest.php +++ b/tests/Input/ChildCommandFactoryTest.php @@ -270,6 +270,27 @@ public static function childProvider(): iterable ], ]; })(); + + yield 'no PHP executable or command' => (static function () use ( + $scriptPath + ) { + [$input, $commandDefinition] = self::createInput( + [], + [], + ); + + return [ + '', + $scriptPath, + '', + $commandDefinition, + $input, + [ + $scriptPath, + '--child', + ], + ]; + })(); } public function test_it_cannot_create_a_factory_with_an_invalid_script_path(): void