Skip to content

Commit 59363e2

Browse files
authored
Merge pull request #15 from php-api-clients/turn-objects-into-arrays
Turn objects into arrays
2 parents 06e62a2 + dd10d4a commit 59363e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Generator/Schema.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@ public static function generate(string $name, string $namespace, string $classNa
7979
$docBlock[] = '@\WyriHaximus\Hydrator\Attribute\HydrateArray(\\' . $namespace . '\\' . $schemaClassNameMap[spl_object_hash($property->items)] . '::class)';
8080
}
8181
$t = str_replace([
82+
'object',
8283
'integer',
8384
'any',
8485
'boolean',
8586
], [
87+
'array',
8688
'int',
8789
'',
8890
'bool',

0 commit comments

Comments
 (0)