From 0c8ce67ad274f1c29579cb4576f5be3e7c9d0e35 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Tue, 29 Jun 2021 13:29:44 +0200 Subject: [PATCH] Fix wrong assertion This was uncovered by Psalm testing when merging 2.2.x up into 2.3.x. --- tests/Doctrine/ODM/MongoDB/Tests/Functional/UpsertTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Doctrine/ODM/MongoDB/Tests/Functional/UpsertTest.php b/tests/Doctrine/ODM/MongoDB/Tests/Functional/UpsertTest.php index dbbc148450..6f6bba4ce9 100644 --- a/tests/Doctrine/ODM/MongoDB/Tests/Functional/UpsertTest.php +++ b/tests/Doctrine/ODM/MongoDB/Tests/Functional/UpsertTest.php @@ -59,7 +59,7 @@ public function testUpsertDoesNotOverwriteNullableFieldsOnNull() $this->dm->clear(); $upsertResult = $this->dm->find(UpsertTestUser::class, $test->id); - assert($upsertResult instanceof $upsertResult); + assert($upsertResult instanceof UpsertTestUser); self::assertNotNull($upsertResult->nullableField); self::assertNotNull($upsertResult->nullableReferenceOne); self::assertNotNull($upsertResult->nullableEmbedOne);