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:
Jan Lysý
2024-06-05 17:13:52 +02:00
committed by Aschepikov
parent 487f1490b0
commit 26a98f1000
26 changed files with 450 additions and 283 deletions

View File

@@ -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();