Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrogoyski committed Apr 19, 2022
1 parent e29e4d2 commit bd85bb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Infinite.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public static function cycle(iterable $iterable): \InfiniteIterator
*/
public static function repeat($item): \Generator
{
// @phpstan-ignore-next-line
while (true) {
yield $item;
}
Expand Down
1 change: 1 addition & 0 deletions tests/Fixture/ArrayIteratorFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function rewind(): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->values[$this->i];
Expand Down
2 changes: 1 addition & 1 deletion tests/Single/TakeWhileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use IterTools\Single;
use IterTools\Tests\Fixture;

class TakeWhile extends \PHPUnit\Framework\TestCase
class TakeWhileTest extends \PHPUnit\Framework\TestCase
{
/**
* @test takeWhile array
Expand Down

0 comments on commit bd85bb6

Please sign in to comment.