Skip to content

Commit

Permalink
feat: replace deprecated call to getVarcharTypeDeclarationSQL() (#158)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Georg <[email protected]>
Co-authored-by: Johan Wilfer <[email protected]>
  • Loading branch information
3 people authored Feb 24, 2024
1 parent 4a79d73 commit 69ec5c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Type/MoneyTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/Type/MoneyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69ec5c8

Please sign in to comment.