diff --git a/PropertyDescriber/ObjectPropertyDescriber.php b/PropertyDescriber/ObjectPropertyDescriber.php index 8a8ca044b..4b55b6c91 100644 --- a/PropertyDescriber/ObjectPropertyDescriber.php +++ b/PropertyDescriber/ObjectPropertyDescriber.php @@ -43,7 +43,6 @@ public function describe(array $types, OA\Schema $property, array $groups = null $weakContext = Util::createWeakContext($property->_context); $schemas = [new OA\Schema(['ref' => $this->modelRegistry->register(new Model($type, $groups)), '_context' => $weakContext])]; - // All of is needed for enums to make sure if (function_exists('enum_exists') && enum_exists($type->getClassName())) { $property->allOf = $schemas; } else {