Skip to content

Commit

Permalink
fix: remove return type hint for compatibilty
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Jul 11, 2021
1 parent 73a480f commit 5baea25
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/Process/Process.php
Expand Up @@ -52,17 +52,6 @@ public function __construct(array $command, ?string $cwd = null)
parent::__construct($this->useCorrectCommand($command), $cwd);
}

/**
* @return Generator<string, string>
*
* @codeCoverageIgnore
*/
public function getIterator(int $flags = 0): Generator
{
/** @var Generator<string, string> */
return parent::getIterator($flags);
}

/**
* @param string[] $command
*
Expand Down Expand Up @@ -99,4 +88,19 @@ protected function getProcessClassName(): string
{
return SymfonyProcess::class;
}

/**
* @param int $flags
*
* @return Generator<string, string>
*
* @codeCoverageIgnore
*
* phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
*/
public function getIterator($flags = 0)
{
/** @var Generator<string, string> */
return parent::getIterator($flags);
}
}

0 comments on commit 5baea25

Please sign in to comment.