diff --git a/README.md b/README.md index 2f6858551ce4b1de3bbee254e49b50ae20e4378d..12997316d10d8b21770d594e077fddb5de89416c 100644 --- a/README.md +++ b/README.md @@ -449,7 +449,7 @@ enum Status: string { case PUBLISHED = 'published'; } -$statusType = EnumType::of(Status::class); +$statusType = EnumType::of(Status::class, new Database\NamedType(new Database\Identifier('public', 'status'))); ``` ##### Composite types @@ -490,10 +490,6 @@ $moneyType = new class extends CompositeType { Similarly to arrays, in PostgreSQL, composite type fields are always nullable. However, `CompositeType` rejects null values except in positions where they are explicitly allowed: -```php -$nullableDateArrayType = ArrayType::of(NullableType::of(new DateType())); -``` - ```php $moneyType = new class extends CompositeType { public function __construct()