Skip to content

Commit

Permalink
Make API\Process\Factory\ProcessFactoryInterface::create() $command a…
Browse files Browse the repository at this point in the history
…rgument required.
  • Loading branch information
TravisCarden committed Jul 28, 2023
1 parent 537a8d4 commit ec300dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/API/Process/Factory/ProcessFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ interface ProcessFactoryInterface
* @throws \PhpTuf\ComposerStager\API\Exception\LogicException
* If the process cannot be created due to host configuration.
*/
public function create(array $command = []): ProcessInterface;
public function create(array $command): ProcessInterface;
}
2 changes: 1 addition & 1 deletion src/Internal/Process/Factory/ProcessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(
) {
}

public function create(array $command = []): ProcessInterface
public function create(array $command): ProcessInterface
{
return new Process($this->symfonyProcessFactory, $this->translatableFactory, $command);
}
Expand Down

0 comments on commit ec300dc

Please sign in to comment.