Skip to content

Commit

Permalink
change default value to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioBatSilva committed Jan 16, 2012
1 parent 9244ffd commit 08c514f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/DBAL/Statement.php
Expand Up @@ -206,9 +206,9 @@ public function fetch($fetchStyle = PDO::FETCH_BOTH)
* @param mixed $fetchArgument
* @return array An array containing all of the remaining rows in the result set.
*/
public function fetchAll($fetchStyle = PDO::FETCH_BOTH, $fetchArgument = null)
public function fetchAll($fetchStyle = PDO::FETCH_BOTH, $fetchArgument = 0)
{
if ($fetchArgument !== null) {
if ($fetchArgument !== 0) {
return $this->stmt->fetchAll($fetchStyle, $fetchArgument);
}
return $this->stmt->fetchAll($fetchStyle);
Expand Down

0 comments on commit 08c514f

Please sign in to comment.