Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 49b22c8

Browse files
committed
Merge pull request #2 from bradley-holt/patch-1
Make DesignDocument Parameter Optional
2 parents 18f1d30 + 3a44148 commit 49b22c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/CouchDB/CouchDBClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public function deleteDocument($id, $rev)
365365
* @param DesignDocument $designDoc
366366
* @return View\Query
367367
*/
368-
public function createViewQuery($designDocName, $viewName, DesignDocument $designDoc)
368+
public function createViewQuery($designDocName, $viewName, DesignDocument $designDoc = null)
369369
{
370370
return new View\Query($this->httpClient, $this->databaseName, $designDocName, $viewName, $designDoc);
371371
}

0 commit comments

Comments
 (0)