Skip to content

Commit

Permalink
Fix Doctrine v2 deprecation (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
GwendolenLynch authored and martin-georgiev committed Aug 4, 2019
1 parent b8acbb0 commit aecd1f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/MartinGeorgiev/Doctrine/DBAL/Types/BaseType.php
Expand Up @@ -32,6 +32,14 @@ public function getName(): string
return static::TYPE_NAME;
}

/**
* {@inheritdoc}
*/
public function requiresSQLCommentHint(AbstractPlatform $platform): bool
{
return false;
}

private static function throwExceptionIfTypeNameNotConfigured(): void
{
if (null === static::TYPE_NAME) {
Expand Down
2 changes: 1 addition & 1 deletion tests/MartinGeorgiev/Doctrine/DBAL/Types/BaseTypeTest.php
Expand Up @@ -26,7 +26,7 @@ protected function setUp(): void
$this->platform = $this->createMock(AbstractPlatform::class);

$this->fixture = $this->getMockBuilder(BaseType::class)
->setMethods(null)
->setMethods([])
->disableOriginalConstructor()
->getMockForAbstractClass();
}
Expand Down

0 comments on commit aecd1f8

Please sign in to comment.