Skip to content

Commit 08bdcdf

Browse files
committed
Fix phpcs
1 parent 60eaa3b commit 08bdcdf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/Doctrine/ODM/MongoDB/Tests/Types/DateImmutableTypeTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,12 @@ public function testClosureToPHP($input, $output)
126126
$return = null;
127127
eval($type->closureToPHP());
128128

129-
/** @var DateTimeImmutable */
130129
return $return;
131130
})($input);
132131

132+
// @phpstan-ignore-next-line
133+
assert($return instanceof DateTimeImmutable);
134+
133135
$this->assertInstanceOf(DateTimeImmutable::class, $return);
134136
$this->assertTimestampEquals($output, $return);
135137
}

tests/Doctrine/ODM/MongoDB/Tests/Types/DateTypeTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,12 @@ public function testClosureToPHP($input, $output)
126126
$return = null;
127127
eval($type->closureToPHP());
128128

129-
/** @var DateTime */
130129
return $return;
131130
})($input);
132131

132+
// @phpstan-ignore-next-line
133+
assert($return instanceof DateTime);
134+
133135
$this->assertInstanceOf(DateTime::class, $return);
134136
$this->assertTimestampEquals($output, $return);
135137
}

0 commit comments

Comments
 (0)