From 6d5fc5b58d7bf78fc21528cbfc689203b29e0050 Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Sat, 30 Apr 2022 08:42:46 +0200 Subject: [PATCH] Fix static analysis build --- psalm-baseline.xml | 4 ++-- .../ODM/MongoDB/Tests/Types/DateImmutableTypeTest.php | 2 -- tests/Doctrine/ODM/MongoDB/Tests/Types/DateTypeTest.php | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index df7802006f..307fbb16db 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -201,12 +201,12 @@ - assert($return instanceof DateTimeImmutable) + assertInstanceOf - assert($return instanceof DateTime) + assertInstanceOf diff --git a/tests/Doctrine/ODM/MongoDB/Tests/Types/DateImmutableTypeTest.php b/tests/Doctrine/ODM/MongoDB/Tests/Types/DateImmutableTypeTest.php index 77433d5365..080ea032f4 100644 --- a/tests/Doctrine/ODM/MongoDB/Tests/Types/DateImmutableTypeTest.php +++ b/tests/Doctrine/ODM/MongoDB/Tests/Types/DateImmutableTypeTest.php @@ -136,8 +136,6 @@ public function testClosureToPHP($input, DateTimeImmutable $output): void })($input); // @phpstan-ignore-next-line - assert($return instanceof DateTimeImmutable); - $this->assertInstanceOf(DateTimeImmutable::class, $return); $this->assertTimestampEquals($output, $return); } diff --git a/tests/Doctrine/ODM/MongoDB/Tests/Types/DateTypeTest.php b/tests/Doctrine/ODM/MongoDB/Tests/Types/DateTypeTest.php index e0b072a377..94e666b6c8 100644 --- a/tests/Doctrine/ODM/MongoDB/Tests/Types/DateTypeTest.php +++ b/tests/Doctrine/ODM/MongoDB/Tests/Types/DateTypeTest.php @@ -136,8 +136,6 @@ public function testClosureToPHP($input, DateTime $output): void })($input); // @phpstan-ignore-next-line - assert($return instanceof DateTime); - $this->assertInstanceOf(DateTime::class, $return); $this->assertTimestampEquals($output, $return); }