Skip to content

Commit 762f6cf

Browse files
committed
Favor float over alias double
1 parent 7fbdb7c commit 762f6cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Entity/EntityIdValue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public function serialize() {
4242
* though cannot be removed until we ditch the "numeric id" part
4343
* from the serialization.
4444
*
45-
* @return double Numeric id as a whole number. Can not be int because of 32-bit PHP.
45+
* @return float Numeric id as a whole number. Can not be int because of 32-bit PHP.
4646
*/
4747
protected function getNumericId() {
48-
return doubleval( substr( $this->entityId->getSerialization(), 1 ) );
48+
return floatval( substr( $this->entityId->getSerialization(), 1 ) );
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)