From 08c514fab9953898be656ffb50054a34d3e6dbf5 Mon Sep 17 00:00:00 2001 From: "Fabio B. Silva" Date: Mon, 16 Jan 2012 18:15:45 -0200 Subject: [PATCH] change default value to 0 --- lib/Doctrine/DBAL/Statement.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/DBAL/Statement.php b/lib/Doctrine/DBAL/Statement.php index a3e1f2f8c87..409b30681a9 100644 --- a/lib/Doctrine/DBAL/Statement.php +++ b/lib/Doctrine/DBAL/Statement.php @@ -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);