I'm trying to understand how to override a __construct in Process class. By default, construct only accepts an array as first parameter:
public function __construct(array $command, string $cwd = null, array $env = null, mixed $input = null, ?float $timeout = 60)
But I need for it to accepty strings aswell, which means something like this
public function __construct(array|string $command, string $cwd = null, array $env = null, mixed $input = null, ?float $timeout = 60)
Only overriding is accepted for solution tho, nothing else. I need this because of Behat tests, since when I run them, I get error "Process::__construct(): Argument #1 ($command) must be of type array, string given"