From 2d8833c9533d7584cce19c3c2c48c12cd5c5e8b2 Mon Sep 17 00:00:00 2001 From: "Jonathan H. Wage" Date: Wed, 29 May 2019 21:06:49 -0500 Subject: [PATCH] Improve array key types in Doctrine\DBAL\Types namespace. --- lib/Doctrine/DBAL/Types/Type.php | 8 ++++---- lib/Doctrine/DBAL/Types/TypeRegistry.php | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/Doctrine/DBAL/Types/Type.php b/lib/Doctrine/DBAL/Types/Type.php index c8747872f63..2a624254afc 100644 --- a/lib/Doctrine/DBAL/Types/Type.php +++ b/lib/Doctrine/DBAL/Types/Type.php @@ -160,8 +160,8 @@ public function convertToPHPValue($value, AbstractPlatform $platform) /** * Gets the SQL declaration snippet for a field of this type. * - * @param mixed[] $fieldDeclaration The field declaration. - * @param AbstractPlatform $platform The currently used database platform. + * @param array $fieldDeclaration The field declaration. + * @param AbstractPlatform $platform The currently used database platform. */ abstract public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) : string; @@ -258,7 +258,7 @@ public function getBindingType() : int * Gets the types array map which holds all registered types and the corresponding * type class * - * @return string[] + * @return array */ public static function getTypesMap() : array { @@ -302,7 +302,7 @@ public function convertToPHPValueSQL(string $sqlExpr, AbstractPlatform $platform /** * Gets an array of database types that map to this Doctrine type. * - * @return string[] + * @return array */ public function getMappedDatabaseTypes(AbstractPlatform $platform) : array { diff --git a/lib/Doctrine/DBAL/Types/TypeRegistry.php b/lib/Doctrine/DBAL/Types/TypeRegistry.php index 1250bc18189..c353620b942 100644 --- a/lib/Doctrine/DBAL/Types/TypeRegistry.php +++ b/lib/Doctrine/DBAL/Types/TypeRegistry.php @@ -21,7 +21,11 @@ */ final class TypeRegistry { - /** @var array Map of type names and their corresponding flyweight objects. */ + /** + * Map of type names and their corresponding flyweight objects. + * + * @var array + */ private $instances = []; /**