diff --git a/phalcon/Db/Result/PdoResult.zep b/phalcon/Db/Result/PdoResult.zep index 2b87e1342c4..45c86e1d023 100644 --- a/phalcon/Db/Result/PdoResult.zep +++ b/phalcon/Db/Result/PdoResult.zep @@ -218,7 +218,7 @@ class PdoResult implements ResultInterface public function fetchAll( int mode = Enum::FETCH_DEFAULT, var fetchArgument = Pdo::FETCH_ORI_NEXT, - var constructorArgs = 0 + var constructorArgs = null ) -> array { if mode == Enum::FETCH_CLASS { return this->pdoStatement->fetchAll(mode, fetchArgument, constructorArgs);