Skip to content

Commit 029e17f

Browse files
committed
[phpstorm-stubs] Add @return annotations and @throws SolrIllegalArgumentException in SolrInputDocument methods
1 parent f50893b commit 029e17f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

solr/Documents/SolrInputDocument.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ public function addField($fieldName, $fieldValue, $fieldBoostValue = 0.0) {}
114114
* @param string $value <p>
115115
* The value for the field.
116116
* </p>
117+
* @return bool <p>
118+
* Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
119+
* </p>
120+
* @throws SolrIllegalArgumentException
117121
*/
118122
public function updateField($fieldName, $modifier, $value) {}
119123

@@ -317,13 +321,17 @@ public function setFieldBoost($fieldName, $fieldBoostValue) {}
317321
* @param int $version <p>
318322
* The document version.
319323
* </p>
324+
* @return bool <p>
325+
* Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
326+
* </p>
327+
* @throws SolrIllegalArgumentException
320328
*/
321329
public function setVersion($version) {}
322330

323331
/**
324332
* (PECL solr &gt;= 2.5.0)<br/>
325333
* Get the document version
326-
* @return int <p>
334+
* @return int|null <p>
327335
* The document version.
328336
* </p>
329337
*/

0 commit comments

Comments
 (0)