Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Jun 21, 2021
1 parent 60eaa3b commit 08bdcdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,12 @@ public function testClosureToPHP($input, $output)
$return = null;
eval($type->closureToPHP());

/** @var DateTimeImmutable */
return $return;
})($input);

// @phpstan-ignore-next-line
assert($return instanceof DateTimeImmutable);

$this->assertInstanceOf(DateTimeImmutable::class, $return);
$this->assertTimestampEquals($output, $return);
}
Expand Down
4 changes: 3 additions & 1 deletion tests/Doctrine/ODM/MongoDB/Tests/Types/DateTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,12 @@ public function testClosureToPHP($input, $output)
$return = null;
eval($type->closureToPHP());

/** @var DateTime */
return $return;
})($input);

// @phpstan-ignore-next-line
assert($return instanceof DateTime);

$this->assertInstanceOf(DateTime::class, $return);
$this->assertTimestampEquals($output, $return);
}
Expand Down

0 comments on commit 08bdcdf

Please sign in to comment.