We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 599bdee commit a74f167Copy full SHA for a74f167
src/Process/PhpExecutableFinder.php
@@ -15,6 +15,7 @@
15
16
use Symfony\Component\Process\PhpExecutableFinder as SymfonyPhpExecutableFinder;
17
use Webmozart\Assert\Assert;
18
+use function array_values;
19
20
final class PhpExecutableFinder
21
{
@@ -36,7 +37,7 @@ public static function tryToFind(): ?string
36
37
}
38
39
/**
- * @return list<string>
40
+ * @return non-empty-list<string>
41
*/
42
public static function find(): array
43
@@ -48,10 +49,10 @@ public static function find(): array
48
49
'Could not find the PHP executable.',
50
);
51
- return array_merge(
52
- [$phpExecutable],
53
- $finder->findArguments(),
54
- );
+ return array_values([
+ $phpExecutable,
+ ...$finder->findArguments(),
55
+ ]);
56
57
58
private static function getFinder(): SymfonyPhpExecutableFinder
0 commit comments