From a920c3e7523eea5b8371c9c415f35386e9d4360e Mon Sep 17 00:00:00 2001 From: ignace nyamagana butera Date: Sat, 18 Nov 2023 08:42:55 +0100 Subject: [PATCH] Remove internal method --- src/Serializer/Type.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Serializer/Type.php b/src/Serializer/Type.php index a3a1e057..f479dbe6 100644 --- a/src/Serializer/Type.php +++ b/src/Serializer/Type.php @@ -99,14 +99,6 @@ public static function list(ReflectionParameter|ReflectionProperty $reflectionPr $reflectionProperty instanceof ReflectionProperty => 'The property `'.$reflectionProperty->getName().'` must be typed.', }); - return self::typeList($reflectionType); - } - - /** - * @return list - */ - private static function typeList(ReflectionType $reflectionType): array - { $foundTypes = static function (array $res, ReflectionType $reflectionType) { if (!$reflectionType instanceof ReflectionNamedType) { return $res;