Skip to content

Commit

Permalink
Fix static analysis build
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Apr 30, 2022
1 parent b39b2d9 commit 6d5fc5b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@
</file>
<file src="tests/Doctrine/ODM/MongoDB/Tests/Types/DateImmutableTypeTest.php">
<TypeDoesNotContainType occurrences="1">
<code>assert($return instanceof DateTimeImmutable)</code>
<code>assertInstanceOf</code>
</TypeDoesNotContainType>
</file>
<file src="tests/Doctrine/ODM/MongoDB/Tests/Types/DateTypeTest.php">
<TypeDoesNotContainType occurrences="1">
<code>assert($return instanceof DateTime)</code>
<code>assertInstanceOf</code>
</TypeDoesNotContainType>
</file>
<file src="tests/Documents/CommentRepository.php">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 0 additions & 2 deletions tests/Doctrine/ODM/MongoDB/Tests/Types/DateTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6d5fc5b

Please sign in to comment.