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.
1 parent ad9b69b commit 228b5c2Copy full SHA for 228b5c2
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