Fix PHPStan error
This commit is contained in:
parent
cf89ca76a0
commit
40197e3a93
1 changed files with 5 additions and 4 deletions
|
@ -8,13 +8,14 @@ use Symfony\Component\Process\Process as SymfonyProcess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new Process instance with some extra options.
|
* 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
|
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
|
public static function create(array $command, string $workingDir, ?string $extraArgs = null): SymfonyProcess
|
||||||
{
|
{
|
||||||
$process = new SymfonyProcess(command: array_filter([...$command, $extraArgs]));
|
$process = new SymfonyProcess(command: array_filter([...$command, $extraArgs]));
|
||||||
|
|
Reference in a new issue