The expression return $this->getMockFor...stractDB2Driver::class) returns the type PHPUnit\Framework\MockObject\MockObject which is incompatible with the type-hinted return Doctrine\DBAL\Driver.
Loading history...
20
}
21
22
protected function createPlatform() : AbstractPlatform
23
{
24
return new DB2Platform();
25
}
26
27
protected function createSchemaManager(Connection $connection) : AbstractSchemaManager