diff --git a/psalm.xml b/psalm.xml
index b8ca2546..9a15085d 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -15,5 +15,6 @@
+
diff --git a/src/Collection/AuditedCollection.php b/src/Collection/AuditedCollection.php
index f5d8749a..256c41cb 100644
--- a/src/Collection/AuditedCollection.php
+++ b/src/Collection/AuditedCollection.php
@@ -297,8 +297,6 @@ public function exists(\Closure $p)
*
* @phpstan-param \Closure(T, TKey):bool $p
* @phpstan-return Collection
- *
- * @psalm-suppress MoreSpecificImplementedParamType https://github.com/doctrine/collections/pull/411
*/
#[\ReturnTypeWillChange]
public function filter(\Closure $p)
@@ -341,8 +339,6 @@ public function map(\Closure $func)
*
* @phpstan-param \Closure(TKey, T):bool $p
* @phpstan-return array{0: Collection, 1: Collection}
- *
- * @psalm-suppress MoreSpecificImplementedParamType https://github.com/doctrine/collections/pull/411
*/
#[\ReturnTypeWillChange]
public function partition(\Closure $p)
diff --git a/src/EventListener/LogRevisionsListener.php b/src/EventListener/LogRevisionsListener.php
index 78979375..832b3dcf 100644
--- a/src/EventListener/LogRevisionsListener.php
+++ b/src/EventListener/LogRevisionsListener.php
@@ -547,7 +547,7 @@ private function saveRevisionEntityData(EntityManagerInterface $em, ClassMetadat
$data = $entityData[$field] ?? null;
$relatedId = [];
- if (null !== $data && $uow->isInIdentityMap($data)) {
+ if (\is_object($data) && $uow->isInIdentityMap($data)) {
$relatedId = $uow->getEntityIdentifier($data);
}
@@ -741,7 +741,7 @@ private function prepareUpdateData(EntityManagerInterface $em, EntityPersister $
$newValId = null;
- if (null !== $newVal) {
+ if (\is_object($newVal)) {
if (!$uow->isInIdentityMap($newVal)) {
continue;
}