Skip to content

Commit 1d94df4

Browse files
authored
Merge pull request #93 from php-api-clients/respect-array-examples
Respect array examples
2 parents a6fcbed + edee2ae commit 1d94df4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Gatherer/Property.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ public static function gather(
100100
} else {
101101
$exampleData = 'generated_' . $propertyName;
102102
}
103+
104+
if ($type === 'array') {
105+
$exampleData = [$exampleData];
106+
}
103107
}
104108
$type = new PropertyType(
105109
'scalar',

0 commit comments

Comments
 (0)