We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5716f23 + 762f6cf commit 93d7518Copy full SHA for 93d7518
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