From 05ed408acb765b47c2538c34c62f748439e373fb Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Wed, 5 Jan 2022 02:32:26 +0100 Subject: [PATCH] Fix return type (#173) Method "Doctrine\DBAL\Types\Type::getSQLDeclaration()" might add "string" as a native return type declaration in the future. Do the same in child class "Ramsey\Uuid\Doctrine\UuidBinaryType" now to avoid errors or add an explicit @return annotation to suppress this message. --- src/UuidBinaryOrderedTimeType.php | 1 + src/UuidBinaryType.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/UuidBinaryOrderedTimeType.php b/src/UuidBinaryOrderedTimeType.php index 994ba05..8f75f1a 100644 --- a/src/UuidBinaryOrderedTimeType.php +++ b/src/UuidBinaryOrderedTimeType.php @@ -54,6 +54,7 @@ class UuidBinaryOrderedTimeType extends Type * * @param array $fieldDeclaration * @param AbstractPlatform $platform + * @return string */ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { diff --git a/src/UuidBinaryType.php b/src/UuidBinaryType.php index 1774471..37c95d9 100644 --- a/src/UuidBinaryType.php +++ b/src/UuidBinaryType.php @@ -37,6 +37,7 @@ class UuidBinaryType extends Type * * @param array $fieldDeclaration * @param AbstractPlatform $platform + * @return string */ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) {