Skip to content

Commit

Permalink
Merge pull request #206 from JavierLeon9966/patch-1
Browse files Browse the repository at this point in the history
Fixed PHPStan not recognizing the Traverser value type
  • Loading branch information
SOF3 authored Dec 27, 2023
2 parents 0021b25 + 24ef88f commit 2241e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions await-generator/src/SOFe/AwaitGenerator/Traverser.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ public static function fromClosure(Closure $closure) : self{
*
* Returns false if there are no more values.
*
* @param I $valueRef
* @param-out I $valueRef
*/
public function next(&$valueRef) : Generator{
public function next(mixed &$valueRef) : Generator{
while($this->inner->valid()){
$k = $this->inner->key();
$v = $this->inner->current();
Expand Down

0 comments on commit 2241e70

Please sign in to comment.