diff --git a/src/Infinite.php b/src/Infinite.php index 08567e4f..815e066f 100644 --- a/src/Infinite.php +++ b/src/Infinite.php @@ -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; } diff --git a/tests/Fixture/ArrayIteratorFixture.php b/tests/Fixture/ArrayIteratorFixture.php index d9dcc9e6..0170d7cd 100644 --- a/tests/Fixture/ArrayIteratorFixture.php +++ b/tests/Fixture/ArrayIteratorFixture.php @@ -23,6 +23,7 @@ public function rewind(): void /** * @return mixed */ + #[\ReturnTypeWillChange] public function current() { return $this->values[$this->i]; diff --git a/tests/Single/TakeWhileTest.php b/tests/Single/TakeWhileTest.php index ed6073e6..5ab5b288 100644 --- a/tests/Single/TakeWhileTest.php +++ b/tests/Single/TakeWhileTest.php @@ -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