Skip to content

Commit f663cf7

Browse files
committed
Fix serializationTest testSimpleEntityToSearchableArray
1 parent 429264d commit f663cf7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/Unit/SerializationTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ public function testSimpleEntityToSearchableArray(): void
1616
{
1717
$post = new Post('a simple post', 'some text', $datetime = new \DateTimeImmutable('@1728994403'));
1818
$idReflection = (new \ReflectionObject($post))->getProperty('id');
19-
if (PHP_VERSION_ID < 80000) {
20-
$idReflection->setAccessible(true);
21-
}
19+
$idReflection->setAccessible(true);
2220
$idReflection->setValue($post, 12);
2321

2422
$comment = new Comment($post, 'a great comment', $datetime);

0 commit comments

Comments
 (0)