Skip to content

Commit 4d5a1ee

Browse files
committed
Use constant
1 parent d9eaa5a commit 4d5a1ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6511,7 +6511,7 @@ public function casting(Document $collection, Document $document): Document
65116511
$node = (bool)$node;
65126512
break;
65136513
case self::VAR_ID:
6514-
if ($this->adapter->getIdAttributeType() === 'int') {
6514+
if ($this->adapter->getIdAttributeType() === Database::VAR_ID_INT) {
65156515
$node = (int)$node;
65166516
}
65176517
break;

0 commit comments

Comments
 (0)