From 256225d1eddb70e7f6d1ad3e586ef5317a2a5169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Sat, 30 Jan 2021 11:38:41 +0100 Subject: [PATCH] Remove internal flag from TypeRegistry This class is almost 2 years old and never received BC breaking change. We need to rely on its API so we can build DI integration in DoctrineBundle --- lib/Doctrine/DBAL/Types/Type.php | 3 --- lib/Doctrine/DBAL/Types/TypeRegistry.php | 2 -- 2 files changed, 5 deletions(-) diff --git a/lib/Doctrine/DBAL/Types/Type.php b/lib/Doctrine/DBAL/Types/Type.php index f8be9131bcd..581bf44f66d 100644 --- a/lib/Doctrine/DBAL/Types/Type.php +++ b/lib/Doctrine/DBAL/Types/Type.php @@ -195,9 +195,6 @@ abstract public function getSQLDeclaration(array $column, AbstractPlatform $plat */ abstract public function getName(); - /** - * @internal This method is only to be used within DBAL for forward compatibility purposes. Do not use directly. - */ final public static function getTypeRegistry(): TypeRegistry { if (self::$typeRegistry === null) { diff --git a/lib/Doctrine/DBAL/Types/TypeRegistry.php b/lib/Doctrine/DBAL/Types/TypeRegistry.php index fdae6d603c8..ce33b951ae8 100644 --- a/lib/Doctrine/DBAL/Types/TypeRegistry.php +++ b/lib/Doctrine/DBAL/Types/TypeRegistry.php @@ -12,8 +12,6 @@ /** * The type registry is responsible for holding a map of all known DBAL types. * The types are stored using the flyweight pattern so that one type only exists as exactly one instance. - * - * @internal TypeRegistry exists for forward compatibility, its API should not be considered stable. */ final class TypeRegistry {