diff --git a/src/Gatherer/Property.php b/src/Gatherer/Property.php index 05a521f..9c3fb85 100644 --- a/src/Gatherer/Property.php +++ b/src/Gatherer/Property.php @@ -100,6 +100,10 @@ public static function gather( } else { $exampleData = 'generated_' . $propertyName; } + + if ($type === 'array') { + $exampleData = [$exampleData]; + } } $type = new PropertyType( 'scalar',