We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
count()
1 parent e05401f commit 5a53afbCopy full SHA for 5a53afb
database/factories/CustomFieldFactory.php
@@ -32,7 +32,7 @@ public function definition()
32
CustomField::TYPE_TEXTAREA => false,
33
];
34
35
- $type = array_keys($typesRequireAnswers)[rand(0, count($typesRequireAnswers))]; // Pick a random type
+ $type = array_keys($typesRequireAnswers)[rand(0, count($typesRequireAnswers) - 1)]; // Pick a random type
36
37
return [
38
'type' => $type,
0 commit comments