chore: fix deprecations after bumping doctrine

This commit is contained in:
2026-09-01 15:46:14 +02:00
parent 10ab2bd04b
commit df1e38b008
3 changed files with 43 additions and 49 deletions
@@ -11,7 +11,7 @@ use App\Enum\StatisticsActorRole;
use App\Enum\StatisticsEventName;
use App\Service\Statistics\StatisticsRecorder;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\DBAL\Exception\DatabaseRequired;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
@@ -103,7 +103,7 @@ class StatisticsRecorderTest extends TestCase
{
$this->connection
->method('insert')
->willThrowException(new DbalException('no such table'))
->willThrowException(new DatabaseRequired('no such table'))
;
$this->logger->expects($this->once())->method('error');