Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Ensure Cursor::limit() argument is casted to an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Aug 7, 2013
1 parent 3876a2a commit 8bc1466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/MongoDB/Cursor.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public function key()
*/
public function limit($num)
{
$limit = (integer) $num;
$num = (integer) $num;
$this->limit = $num;
$this->mongoCursor->limit($num);
return $this;
Expand Down

0 comments on commit 8bc1466

Please sign in to comment.