Skip to content

Commit

Permalink
Fixed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
belgattitude committed Dec 27, 2018
1 parent 9a2870f commit 22aa164
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Common/Process/ProcessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class ProcessFactory
{
/** @var string|array */
/** @var array */
protected $command;

/** @var null|ProcessParamsInterface */
Expand All @@ -26,13 +26,7 @@ public function __construct(array $command, ?ProcessParamsInterface $processPara

public function __invoke(): Process
{
if (!is_array($this->command)) {
var_dump($this->command);
die('cool');
// $process = Process::fromShellCommandline($this->command);
} else {
$process = new Process($this->command);
}
$process = new Process($this->command);
if ($this->processParams !== null) {
$process->setTimeout($this->processParams->getTimeout());
$process->setIdleTimeout($this->processParams->getIdleTimeout());
Expand Down

0 comments on commit 22aa164

Please sign in to comment.