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.
2 parents ad9b69b + 228b5c2 commit 753f8b6Copy full SHA for 753f8b6
src/Gatherer/Property.php
@@ -100,17 +100,17 @@ public static function gather(
100
} else {
101
$exampleData = 'generated_' . $propertyName;
102
}
103
-
104
- if ($type === 'array') {
105
- $exampleData = [$exampleData];
106
- }
107
108
$type = new PropertyType(
109
'scalar',
110
$type
111
);
112
113
+ if ($type->payload === 'array') {
+ $exampleData = [$exampleData];
+ }
+
114
if (!is_array($type)) {
115
$type = [$type];
116
0 commit comments