diff --git a/Tests/Type/MoneyTypeTest.php b/Tests/Type/MoneyTypeTest.php index 44f8adf5..e7af107e 100644 --- a/Tests/Type/MoneyTypeTest.php +++ b/Tests/Type/MoneyTypeTest.php @@ -27,7 +27,7 @@ public function testGetSqlDeclaration(): void { $this->platform ->expects($this->once()) - ->method('getVarcharTypeDeclarationSQL') + ->method('getStringTypeDeclarationSQL') ->with(['varchar']) ->willReturn('varchar(255)'); self::assertSame('varchar(255)', $this->type->getSqlDeclaration(['varchar'], $this->platform)); diff --git a/src/Type/MoneyType.php b/src/Type/MoneyType.php index e4795895..4448b4e4 100644 --- a/src/Type/MoneyType.php +++ b/src/Type/MoneyType.php @@ -24,7 +24,7 @@ class MoneyType extends Type public function getSqlDeclaration(array $column, AbstractPlatform $platform): string { - return $platform->getVarcharTypeDeclarationSQL($column); + return $platform->getStringTypeDeclarationSQL($column); } public function requiresSQLCommentHint(AbstractPlatform $platform): bool