Skip to content

Commit 20ba946

Browse files
authored
fix: Address issues reported by PHPStan (#344)
1 parent b184daf commit 20ba946

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Input/ChildCommandFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ public function createChildCommand(InputInterface $input): array
4747
}
4848

4949
/**
50-
* @return array<int, string>
50+
* @return array<int<0, max>, string>
5151
*/
5252
private function createBaseCommand(
5353
InputInterface $input
5454
): array {
55+
// @phpstan-ignore return.type
5556
return array_filter([
5657
...$this->phpExecutable,
5758
$this->scriptPath,

src/Process/PhpExecutableFinder.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
use Symfony\Component\Process\PhpExecutableFinder as SymfonyPhpExecutableFinder;
1717
use Webmozart\Assert\Assert;
18-
use function array_values;
1918

2019
final class PhpExecutableFinder
2120
{
@@ -49,11 +48,10 @@ public static function find(): array
4948
'Could not find the PHP executable.',
5049
);
5150

52-
/** @phpstan-ignore return.type */
53-
return array_values([
51+
return [
5452
$phpExecutable,
5553
...$finder->findArguments(),
56-
]);
54+
];
5755
}
5856

5957
private static function getFinder(): SymfonyPhpExecutableFinder

0 commit comments

Comments
 (0)