Skip to content

Commit

Permalink
Merge pull request #4069 from Andreyco/4.1
Browse files Browse the repository at this point in the history
Fix `count` method return value. #4.1
  • Loading branch information
taylorotwell committed Apr 7, 2014
2 parents 0c9a905 + 022d18c commit 618910c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ public function exists()
*/
public function count($column = '*')
{
return $this->aggregate(__FUNCTION__, array($column));
return (int) $this->aggregate(__FUNCTION__, array($column));
}

/**
Expand Down

0 comments on commit 618910c

Please sign in to comment.