Update composer package doctrine/dbal
We cannot update to the latest version of the dbal 3 because there is a another package conflict. [MAILPOET-6101]
This commit is contained in:
@@ -5,7 +5,7 @@ namespace MailPoet\Cron\Workers\StatsNotifications;
|
||||
use MailPoet\Doctrine\Repository;
|
||||
use MailPoet\Entities\NewsletterLinkEntity;
|
||||
use MailPoet\Entities\StatisticsClickEntity;
|
||||
use MailPoetVendor\Doctrine\DBAL\Driver\Statement;
|
||||
use MailPoetVendor\Doctrine\DBAL\Result;
|
||||
|
||||
/**
|
||||
* @extends Repository<NewsletterLinkEntity>
|
||||
@@ -31,7 +31,7 @@ class NewsletterLinkRepository extends Repository {
|
||||
->orderBy('counter', 'desc')
|
||||
->setMaxResults(1)
|
||||
->execute();
|
||||
if (!$topIdQuery instanceof Statement) {
|
||||
if (!$topIdQuery instanceof Result) {
|
||||
return null;
|
||||
}
|
||||
$topId = $topIdQuery->fetch();
|
||||
|
Reference in New Issue
Block a user