mirror of
https://github.com/opdavies/versa.git
synced 2025-03-13 05:26:56 +00:00
Fix PHPStan error
This commit is contained in:
parent
cf89ca76a0
commit
40197e3a93
|
@ -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]));
|
||||
|
|
Loading…
Reference in a new issue