Skip to content

Commit 9a569dc

Browse files
committed
Fix deprecated use for "as nullable" parameter
+ Fix and improve implicitly marking parameter `$type` as nullable in `generate()`, `generateMultiple()` and `generateSequential()` methods.
1 parent d1915e5 commit 9a569dc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Rif.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php
22

33
declare(strict_types=1);
44

@@ -114,17 +114,17 @@ public function format(string $format = 'standard'): string
114114
};
115115
}
116116

117-
public static function generate(RifType $type = null): self
117+
public static function generate(?RifType $type = null): self
118118
{
119119
return RifGenerator::generate($type);
120120
}
121121

122-
public static function generateMultiple(int $count, RifType $type = null): array
122+
public static function generateMultiple(int $count, ?RifType $type = null): array
123123
{
124124
return RifGenerator::generateMultiple($count, $type);
125125
}
126126

127-
public static function generateSequential(int $sequence, RifType $type = null): self
127+
public static function generateSequential(int $sequence, ?RifType $type = null): self
128128
{
129129
return RifGenerator::generateSequential($sequence, $type);
130130
}

0 commit comments

Comments
 (0)