Skip to content

Commit

Permalink
Fix return type (#173)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ruudk authored Jan 5, 2022
1 parent d120276 commit 05ed408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/UuidBinaryOrderedTimeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class UuidBinaryOrderedTimeType extends Type
*
* @param array $fieldDeclaration
* @param AbstractPlatform $platform
* @return string
*/
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
Expand Down
1 change: 1 addition & 0 deletions src/UuidBinaryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class UuidBinaryType extends Type
*
* @param array $fieldDeclaration
* @param AbstractPlatform $platform
* @return string
*/
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
Expand Down

0 comments on commit 05ed408

Please sign in to comment.