From fb0124ffe9cb7001e560a3142a7b0dfd11350f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pudil?= <me@jiripudil.cz> Date: Thu, 20 Feb 2025 16:17:47 +0100 Subject: [PATCH] fix readme --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 2f68585..1299731 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() -- GitLab