Skip to content

Commit 596c03d

Browse files
committed
Fix cursor Id deprecation
1 parent e674dd6 commit 596c03d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/Model/CodecCursorFunctionalTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,15 @@ function (...$args) use (&$previousErrorHandler, &$deprecations) {
5555
E_USER_DEPRECATED | E_DEPRECATED,
5656
);
5757

58-
$cursorId = $codecCursor->getId();
58+
$cursorId = $codecCursor->getId(true);
5959
} finally {
6060
restore_error_handler();
6161
}
6262

63-
self::assertInstanceOf(CursorId::class, $cursorId);
63+
self::logicalOr(
64+
self::isInstanceOf(Int64::class),
65+
self::isInstanceOf(CursorId::class),
66+
)->matches($cursorId);
6467

6568
// Expect 2 deprecations: 1 from CodecCursor, one from Cursor
6669
self::assertCount(2, $deprecations);

0 commit comments

Comments
 (0)