Skip to content

Commit 5baea25

Browse files
committed
fix: remove return type hint for compatibilty
1 parent 73a480f commit 5baea25

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

src/Process/Process.php

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public function __construct(array $command, ?string $cwd = null)
5252
parent::__construct($this->useCorrectCommand($command), $cwd);
5353
}
5454

55-
/**
56-
* @return Generator<string, string>
57-
*
58-
* @codeCoverageIgnore
59-
*/
60-
public function getIterator(int $flags = 0): Generator
61-
{
62-
/** @var Generator<string, string> */
63-
return parent::getIterator($flags);
64-
}
65-
6655
/**
6756
* @param string[] $command
6857
*
@@ -99,4 +88,19 @@ protected function getProcessClassName(): string
9988
{
10089
return SymfonyProcess::class;
10190
}
91+
92+
/**
93+
* @param int $flags
94+
*
95+
* @return Generator<string, string>
96+
*
97+
* @codeCoverageIgnore
98+
*
99+
* phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
100+
*/
101+
public function getIterator($flags = 0)
102+
{
103+
/** @var Generator<string, string> */
104+
return parent::getIterator($flags);
105+
}
102106
}

0 commit comments

Comments
 (0)