Fix compatibility in Doctrine\Tests\Mocks\DriverConnectionMock