Skip to content

Commit 618910c

Browse files
committed
Merge pull request #4069 from Andreyco/4.1
Fix `count` method return value. #4.1
2 parents 0c9a905 + 022d18c commit 618910c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ public function exists()
15861586
*/
15871587
public function count($column = '*')
15881588
{
1589-
return $this->aggregate(__FUNCTION__, array($column));
1589+
return (int) $this->aggregate(__FUNCTION__, array($column));
15901590
}
15911591

15921592
/**

0 commit comments

Comments
 (0)