Make DesignDocument Parameter Optional #2

Merged
merged 1 commit into from Aug 17, 2012
@@ -365,7 +365,7 @@ public function deleteDocument($id, $rev)
* @param DesignDocument $designDoc
* @return View\Query
*/
- public function createViewQuery($designDocName, $viewName, DesignDocument $designDoc)
+ public function createViewQuery($designDocName, $viewName, DesignDocument $designDoc = null)
{
return new View\Query($this->httpClient, $this->databaseName, $designDocName, $viewName, $designDoc);
}