From 0d445b6a218270097bf7d679a8cb54d5da7e1091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 9 Jun 2024 23:51:41 +0200 Subject: [PATCH] Fixed some minor inspection issues caused by the doctrine upgrades --- src/DataTables/Adapters/CustomFetchJoinORMAdapter.php | 2 +- src/Doctrine/Types/UTCDateTimeType.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/DataTables/Adapters/CustomFetchJoinORMAdapter.php b/src/DataTables/Adapters/CustomFetchJoinORMAdapter.php index b296c4fa..ff69a69e 100644 --- a/src/DataTables/Adapters/CustomFetchJoinORMAdapter.php +++ b/src/DataTables/Adapters/CustomFetchJoinORMAdapter.php @@ -50,6 +50,6 @@ class CustomFetchJoinORMAdapter extends FetchJoinORMAdapter $paginator = new Paginator($qb_without_group_by); - return $paginator->count() ?? 0; + return $paginator->count(); } } diff --git a/src/Doctrine/Types/UTCDateTimeType.php b/src/Doctrine/Types/UTCDateTimeType.php index 821a43d2..11ece822 100644 --- a/src/Doctrine/Types/UTCDateTimeType.php +++ b/src/Doctrine/Types/UTCDateTimeType.php @@ -64,8 +64,6 @@ class UTCDateTimeType extends DateTimeType * * @param T $value * - * @return DateTime|(T is null ? null : DateTimeInterface) - * * @template T */ public function convertToPHPValue($value, AbstractPlatform $platform): ?DateTime