Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
73c09df6
Commit
73c09df6
authored
Oct 30, 2018
by
Derick Rethans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-356: Audit documentation for possible BSON 64-bit integer return values
parent
b6320a09
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
MapReduceResult.php
src/MapReduceResult.php
+1
-1
CollectionInfo.php
src/Model/CollectionInfo.php
+2
-0
DatabaseInfo.php
src/Model/DatabaseInfo.php
+1
-0
No files found.
src/MapReduceResult.php
View file @
73c09df6
...
...
@@ -71,7 +71,7 @@ class MapReduceResult implements IteratorAggregate
*/
public
function
getExecutionTimeMS
()
{
return
$this
->
executionTimeMS
;
return
(
integer
)
$this
->
executionTimeMS
;
}
/**
...
...
src/Model/CollectionInfo.php
View file @
73c09df6
...
...
@@ -63,6 +63,7 @@ class CollectionInfo implements ArrayAccess
*/
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
;
}
...
...
@@ -73,6 +74,7 @@ class CollectionInfo implements ArrayAccess
*/
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
;
}
...
...
src/Model/DatabaseInfo.php
View file @
73c09df6
...
...
@@ -71,6 +71,7 @@ class DatabaseInfo implements ArrayAccess
*/
public
function
getSizeOnDisk
()
{
/* The MongoDB server might return this number as an integer or float */
return
(
integer
)
$this
->
info
[
'sizeOnDisk'
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment