Skip to content

Commit 3ae46c7

Browse files
committed
ECS-1012
1 parent bbbf61f commit 3ae46c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/FakerProvider.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ public function nullable(?bool $always = null, $default = null)
3131
return parent::optional($weight, $default);
3232
}
3333

34+
/**
35+
* @param null|bool $always
36+
*
37+
* @return static
38+
*/
39+
public function missing(?bool $always = null)
40+
{
41+
return static::nullable($always, new FactoryMissingValue());
42+
}
43+
3444
/**
3545
* Сгенерировать массив значений. Совместим с $optionalAlways
3646
*

0 commit comments

Comments
 (0)