We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8da0539 commit 843cd4dCopy full SHA for 843cd4d
1 file changed
src/Entity/EntityIdValue.php
@@ -42,10 +42,10 @@ public function serialize() {
42
* though cannot be removed until we ditch the "numeric id" part
43
* from the serialization.
44
*
45
- * @return double Numeric id as a whole number. Can not be int because of 32-bit PHP.
+ * @return float Numeric id as a whole number. Can not be int because of 32-bit PHP.
46
*/
47
protected function getNumericId() {
48
- return doubleval( substr( $this->entityId->getSerialization(), 1 ) );
+ return floatval( substr( $this->entityId->getSerialization(), 1 ) );
49
}
50
51
/**
0 commit comments