Commit e9dd245f authored by Derick Rethans's avatar Derick Rethans

Merged pull request #588

parents b6320a09 73c09df6
...@@ -71,7 +71,7 @@ class MapReduceResult implements IteratorAggregate ...@@ -71,7 +71,7 @@ class MapReduceResult implements IteratorAggregate
*/ */
public function getExecutionTimeMS() public function getExecutionTimeMS()
{ {
return $this->executionTimeMS; return (integer) $this->executionTimeMS;
} }
/** /**
......
...@@ -63,6 +63,7 @@ class CollectionInfo implements ArrayAccess ...@@ -63,6 +63,7 @@ class CollectionInfo implements ArrayAccess
*/ */
public function getCappedMax() public function getCappedMax()
{ {
/* The MongoDB server might return this number as an integer or float */
return isset($this->info['options']['max']) ? (integer) $this->info['options']['max'] : null; return isset($this->info['options']['max']) ? (integer) $this->info['options']['max'] : null;
} }
...@@ -73,6 +74,7 @@ class CollectionInfo implements ArrayAccess ...@@ -73,6 +74,7 @@ class CollectionInfo implements ArrayAccess
*/ */
public function getCappedSize() public function getCappedSize()
{ {
/* The MongoDB server might return this number as an integer or float */
return isset($this->info['options']['size']) ? (integer) $this->info['options']['size'] : null; return isset($this->info['options']['size']) ? (integer) $this->info['options']['size'] : null;
} }
......
...@@ -71,6 +71,7 @@ class DatabaseInfo implements ArrayAccess ...@@ -71,6 +71,7 @@ class DatabaseInfo implements ArrayAccess
*/ */
public function getSizeOnDisk() public function getSizeOnDisk()
{ {
/* The MongoDB server might return this number as an integer or float */
return (integer) $this->info['sizeOnDisk']; return (integer) $this->info['sizeOnDisk'];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment