Skip to content

Commit

Permalink
chore: minor code update
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Mar 5, 2023
1 parent 12c5825 commit b8f4397
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/MersenneTwisterRNGIteratorAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getIterator(): Generator

// @phpstan-ignore-next-line
while (true) {
yield random_int($this->min, $this->max);
yield mt_rand($this->min, $this->max);
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/MultipleIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
final class MultipleIterableAggregateTest extends TestCase
{
public function basicProvider()
public static function basicProvider()
{
$generator = static function () {
yield from range('a', 'c');
Expand Down Expand Up @@ -52,7 +52,7 @@ public function basicProvider()
];
}

public function basicWithFlagsProvider()
public static function basicWithFlagsProvider()
{
yield [
[range('a', 'c'), range('d', 'e')],
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/StringIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
final class StringIteratorAggregateTest extends TestCase
{
public function stringIteratorAggregateProvider()
public static function stringIteratorAggregateProvider()
{
yield [
'hello world',
Expand Down

0 comments on commit b8f4397

Please sign in to comment.