Skip to content

Commit 4476ae3

Browse files
committed
Merge pull request doctrine#149 from doctrine/batchSize-cast
Use integer-casted argument in Cursor::batchSize()
2 parents cf73ea2 + 5a155c8 commit 4476ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/MongoDB/Cursor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function addOption($key, $value)
113113
*/
114114
public function batchSize($num)
115115
{
116-
$limit = (integer) $num;
116+
$num = (integer) $num;
117117
$this->batchSize = $num;
118118
$this->mongoCursor->batchSize($num);
119119
return $this;

0 commit comments

Comments
 (0)