File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 15
15
16
16
use Symfony \Component \Process \PhpExecutableFinder as SymfonyPhpExecutableFinder ;
17
17
use Webmozart \Assert \Assert ;
18
+ use function array_values ;
18
19
19
20
final class PhpExecutableFinder
20
21
{
@@ -36,7 +37,7 @@ public static function tryToFind(): ?string
36
37
}
37
38
38
39
/**
39
- * @return list<string>
40
+ * @return non-empty- list<string>
40
41
*/
41
42
public static function find (): array
42
43
{
@@ -48,10 +49,10 @@ public static function find(): array
48
49
'Could not find the PHP executable. ' ,
49
50
);
50
51
51
- return array_merge (
52
- [ $ phpExecutable] ,
53
- $ finder ->findArguments (),
54
- );
52
+ return array_values ([
53
+ $ phpExecutable ,
54
+ ... $ finder ->findArguments (),
55
+ ] );
55
56
}
56
57
57
58
private static function getFinder (): SymfonyPhpExecutableFinder
You can’t perform that action at this time.
0 commit comments