-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
139 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,27 @@ | |
use Kiboko\Contract\Bucket\ResultBucketInterface; | ||
|
||
/** | ||
* @template Type | ||
* @template Type of non-empty-array<array-key, mixed>|object | ||
*/ | ||
class GeneratorWrapper | ||
{ | ||
/** @param \Iterator<array-key, Type> ...$iterators */ | ||
/** @param \Iterator<positive-int, Type> ...$iterators */ | ||
public function rewind(\Iterator ...$iterators): void | ||
{ | ||
foreach ($iterators as $iterator) { | ||
Check warning on line 17 in src/GeneratorWrapper.php GitHub Actions / infection
|
||
$iterator->rewind(); | ||
Check warning on line 18 in src/GeneratorWrapper.php GitHub Actions / infection
|
||
} | ||
} | ||
|
||
/** @param \Iterator<array-key, Type> ...$iterators */ | ||
/** @param \Iterator<positive-int, Type> ...$iterators */ | ||
public function next(\Iterator ...$iterators): void | ||
{ | ||
foreach ($iterators as $iterator) { | ||
$iterator->next(); | ||
} | ||
} | ||
|
||
/** @param \Iterator<array-key, Type> ...$iterators */ | ||
/** @param \Iterator<positive-int, Type> ...$iterators */ | ||
public function valid(\Iterator ...$iterators): bool | ||
{ | ||
foreach ($iterators as $iterator) { | ||
Check warning on line 33 in src/GeneratorWrapper.php GitHub Actions / infection
|
||
|
@@ -41,7 +41,7 @@ public function valid(\Iterator ...$iterators): bool | |
|
||
/** | ||
* @param Type $value | ||
* @param \Generator<array-key, ResultBucketInterface<Type>, Type, void> ...$generators | ||
* @param \Generator<positive-int, ResultBucketInterface<Type>, Type, void> ...$generators | ||
*/ | ||
public function send($value, \Generator ...$generators): \Generator | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.