From 47d156ac68dae90ade2e48e832cd9abe8ded5524 Mon Sep 17 00:00:00 2001 From: Didier Laumen Date: Thu, 12 Oct 2023 15:54:01 +0200 Subject: [PATCH] Remove duplicate type setting --- ModelDescriber/EnumModelDescriber.php | 1 - 1 file changed, 1 deletion(-) diff --git a/ModelDescriber/EnumModelDescriber.php b/ModelDescriber/EnumModelDescriber.php index b1cc18fb4..965d3839c 100644 --- a/ModelDescriber/EnumModelDescriber.php +++ b/ModelDescriber/EnumModelDescriber.php @@ -23,7 +23,6 @@ public function describe(Model $model, Schema $schema) } else { $schema->type = 'string'; } - $schema->type = is_subclass_of($enumClass, \IntBackedEnum::class) ? 'int' : 'string'; $schema->enum = $enums; }