Fix PHPStan error

This commit is contained in:
Oliver Davies 2024-02-20 12:21:55 +00:00
parent cf89ca76a0
commit 40197e3a93

View file

@ -8,13 +8,14 @@ use Symfony\Component\Process\Process as SymfonyProcess;
/**
* Create a new Process instance with some extra options.
*
* @param non-empty-array<int, non-empty-string> $command
* @param string $workingDir
* @param ?string $extraArgs
*/
final class Process
{
/**
* @param non-empty-array<int, non-empty-string> $command
* @param string $workingDir
* @param ?string $extraArgs
*/
public static function create(array $command, string $workingDir, ?string $extraArgs = null): SymfonyProcess
{
$process = new SymfonyProcess(command: array_filter([...$command, $extraArgs]));