Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffdb769

Browse files
authored
Merge pull request doctrine#6818 from vkurdin/patch-1
BasicEntityPersister::count() return type fix
2 parents 640d9af + 95344d0 commit ffdb769

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ public function count($criteria = array())
820820
? $this->expandCriteriaParameters($criteria)
821821
: $this->expandParameters($criteria);
822822

823-
return $this->conn->executeQuery($sql, $params, $types)->fetchColumn();
823+
return (int) $this->conn->executeQuery($sql, $params, $types)->fetchColumn();
824824
}
825825

826826
/**

0 commit comments

Comments
 (0)