Use root namespace in referencing Apache_Solr_Document

This commit is contained in:
Marco Hermo 2017-04-21 16:32:47 +12:00
parent 62ba531543
commit da0a217aa0
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class Solr4Service_Core extends SolrService_Core
* @inheritdoc
* @see Solr4Service_Core::addDocuments
*/
public function addDocument(Apache_Solr_Document $document, $allowDups = false,
public function addDocument(\Apache_Solr_Document $document, $allowDups = false,
$overwritePending = true, $overwriteCommitted = true, $commitWithin = 0
) {
return $this->addDocuments(array($document), $allowDups, $overwritePending, $overwriteCommitted, $commitWithin);
@ -52,4 +52,4 @@ class Solr4Service_Core extends SolrService_Core
return $this->add($rawPost);
}
}
}