Commit 3839fa70 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Ajoute 'object' aux builtin types.

Showing with 2 additions and 2 deletions
+2 -2
......@@ -23,7 +23,6 @@ namespace Irstea\NgModelGeneratorBundle;
use ApiPlatform\Core\Documentation\Documentation;
use Irstea\NgModelGeneratorBundle\Exceptions\DomainException;
use Irstea\NgModelGeneratorBundle\Exceptions\Exception;
use Irstea\NgModelGeneratorBundle\Iterators\IteratorBuilder;
use Irstea\NgModelGeneratorBundle\Metadata\MetadataFactoryInterface;
use Irstea\NgModelGeneratorBundle\Metadata\ResourceMetadata;
......@@ -182,7 +181,7 @@ final class ModelGenerator
{
$factory = new TypeFactory();
foreach (['Array', 'Date', 'boolean', 'number', 'null', 'string', 'any', 'never', 'unknown'] as $builtin) {
foreach (['Array', 'Date', 'boolean', 'number', 'null', 'string', 'object', 'any', 'never', 'unknown'] as $builtin) {
$factory->add($builtin, BuiltinType::get($builtin));
}
......@@ -193,6 +192,7 @@ final class ModelGenerator
foreach ([
PHPType::BUILTIN_TYPE_ARRAY => 'Array',
PHPType::BUILTIN_TYPE_BOOL => 'boolean',
PHPType::BUILTIN_TYPE_OBJECT => 'object',
PHPType::BUILTIN_TYPE_FLOAT => 'number',
PHPType::BUILTIN_TYPE_INT => 'number',
PHPType::BUILTIN_TYPE_NULL => 'null',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment