intelephense

1.14.41.16.1
lib/stub/solr/Queries/SolrQuery.php
lib/stub/solr/Queries/SolrQuery.php
+48−48
Index: package/lib/stub/solr/Queries/SolrQuery.php
===================================================================
--- package/lib/stub/solr/Queries/SolrQuery.php
+++ package/lib/stub/solr/Queries/SolrQuery.php
@@ -59,9 +59,9 @@
      * @return SolrQuery <p>
      * Returns a SolrQuery object.
      * </p>
      */
-    public function addExpandSortField($field, $order) {}
+    public function addExpandSortField($field, $order = SolrQuery::ORDER_DESC) {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Maps to facet.date
@@ -88,9 +88,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function addFacetDateOther($value, $field_override) {}
+    public function addFacetDateOther($value, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Adds another field to the facet
@@ -189,9 +189,9 @@
      * @return SolrQuery <p>
      * Returns a SolrQuery object.
      * </p>
      */
-    public function addGroupSortField($field, $order) {}
+    public function addGroupSortField($field, $order = SolrQuery::ORDER_DESC) {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Maps to hl.fl
@@ -374,9 +374,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetDateEnd($field_override) {}
+    public function getFacetDateEnd($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns all the facet.date fields
@@ -397,9 +397,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetDateGap($field_override) {}
+    public function getFacetDateGap($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the value of the facet.date.hardend parameter
@@ -410,9 +410,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetDateHardEnd($field_override) {}
+    public function getFacetDateHardEnd($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the value for the facet.date.other parameter
@@ -423,9 +423,9 @@
      * @return array|null <p>
      * Returns an array on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetDateOther($field_override) {}
+    public function getFacetDateOther($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the lower bound for the first date range for all date faceting on this field
@@ -436,9 +436,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetDateStart($field_override) {}
+    public function getFacetDateStart($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns all the facet fields
@@ -459,9 +459,9 @@
      * @return int|null <p>
      * Returns an integer on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetLimit($field_override) {}
+    public function getFacetLimit($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the value of the facet.method parameter
@@ -472,9 +472,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetMethod($field_override) {}
+    public function getFacetMethod($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the minimum counts for facet fields should be included in the response
@@ -485,9 +485,9 @@
      * @return int|null <p>
      * Returns an integer on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetMinCount($field_override) {}
+    public function getFacetMinCount($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the current state of the facet.missing parameter
@@ -498,9 +498,9 @@
      * @return string|null <p>
      * Returns a boolean on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetMissing($field_override) {}
+    public function getFacetMissing($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns an offset into the list of constraints to be used for pagination
@@ -511,9 +511,9 @@
      * @return int|null <p>
      * Returns an integer on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetOffset($field_override) {}
+    public function getFacetOffset($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the facet prefix
@@ -524,9 +524,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getFacetPrefix($field_override) {}
+    public function getFacetPrefix($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns all the facet queries
@@ -548,9 +548,9 @@
      * Returns an integer (SolrQuery::FACET_SORT_INDEX or SolrQuery::FACET_SORT_COUNT) on success or <b>NULL</b> if not
      * set.
      * </p>
      */
-    public function getFacetSort($field_override) {}
+    public function getFacetSort($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the list of fields that will be returned in the response
@@ -564,9 +564,9 @@
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns an array of filter queries
      * @link https://php.net/manual/en/solrquery.getfilterqueries.php
-     * @return string|null <p>
+     * @return array|null <p>
      * Returns an array on success and <b>NULL</b> if not set
      * </p>
      */
     public function getFilterQueries() {}
@@ -664,9 +664,9 @@
     /**
      * (PECL solr &gt;= 2.2.0)<br/>
      * Returns the group.offset value
      * @link https://php.net/manual/en/solrquery.getgroupoffset.php
-     * @return bool <p>
+     * @return int <p>
      * Returns the group.offset value
      * </p>
      */
     public function getGroupOffset() {}
@@ -721,9 +721,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getHighlightAlternateField($field_override) {}
+    public function getHighlightAlternateField($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns all the fields that Solr should generate highlighted snippets for
@@ -744,9 +744,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getHighlightFormatter($field_override) {}
+    public function getHighlightFormatter($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the text snippet generator for highlighted text
@@ -757,9 +757,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getHighlightFragmenter($field_override) {}
+    public function getHighlightFragmenter($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the number of characters of fragments to consider for highlighting
@@ -770,9 +770,9 @@
      * @return int|null <p>
      * Returns an integer on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getHighlightFragsize($field_override) {}
+    public function getHighlightFragsize($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns whether or not to enable highlighting for range/wildcard/fuzzy/prefix queries
@@ -793,9 +793,9 @@
      * @return int|null <p>
      * Returns an integer on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getHighlightMaxAlternateFieldLength($field_override) {}
+    public function getHighlightMaxAlternateFieldLength($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the maximum number of characters into a document to look for suitable snippets
@@ -816,9 +816,9 @@
      * @return bool|null <p>
      * Returns a boolean on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getHighlightMergeContiguous($field_override) {}
+    public function getHighlightMergeContiguous($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the maximum number of characters from a field when using the regex fragmenter
@@ -869,9 +869,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getHighlightSimplePost($field_override) {}
+    public function getHighlightSimplePost($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the text which appears before a highlighted term
@@ -882,9 +882,9 @@
      * @return string|null <p>
      * Returns a string on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getHighlightSimplePre($field_override) {}
+    public function getHighlightSimplePre($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the maximum number of highlighted snippets to generate per field
@@ -895,9 +895,9 @@
      * @return int|null <p>
      * Returns an integer on success and <b>NULL</b> if not set
      * </p>
      */
-    public function getHighlightSnippets($field_override) {}
+    public function getHighlightSnippets($field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Returns the state of the hl.usePhraseHighlighter parameter
@@ -1270,9 +1270,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function removeFacetDateOther($value, $field_override) {}
+    public function removeFacetDateOther($value, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Removes one of the facet.date parameters
@@ -1507,9 +1507,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetDateEnd($value, $field_override) {}
+    public function setFacetDateEnd($value, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Maps to facet.date.gap
@@ -1523,9 +1523,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetDateGap($value, $field_override) {}
+    public function setFacetDateGap($value, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Maps to facet.date.hardend
@@ -1539,9 +1539,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetDateHardEnd($value, $field_override) {}
+    public function setFacetDateHardEnd($value, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Maps to facet.date.start
@@ -1555,9 +1555,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetDateStart($value, $field_override) {}
+    public function setFacetDateStart($value, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Sets the minimum document frequency used for determining term count
@@ -1571,9 +1571,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetEnumCacheMinDefaultFrequency($frequency, $field_override) {}
+    public function setFacetEnumCacheMinDefaultFrequency($frequency, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Maps to facet.limit
@@ -1587,9 +1587,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetLimit($limit, $field_override) {}
+    public function setFacetLimit($limit, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Specifies the type of algorithm to use when faceting a field
@@ -1603,9 +1603,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetMethod($method, $field_override) {}
+    public function setFacetMethod($method, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Maps to facet.mincount
@@ -1619,9 +1619,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetMinCount($mincount, $field_override) {}
+    public function setFacetMinCount($mincount, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Maps to facet.missing
@@ -1635,9 +1635,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetMissing($flag, $field_override) {}
+    public function setFacetMissing($flag, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Sets the offset into the list of constraints to allow for pagination
@@ -1651,9 +1651,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetOffset($offset, $field_override) {}
+    public function setFacetOffset($offset, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Specifies a string prefix with which to limits the terms on which to facet
@@ -1667,9 +1667,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetPrefix($prefix, $field_override) {}
+    public function setFacetPrefix($prefix, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Determines the ordering of the facet field constraints
@@ -1683,9 +1683,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setFacetSort($facetSort, $field_override) {}
+    public function setFacetSort($facetSort, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 2.2.0)<br/>
      * Enable/Disable result grouping (group parameter)
@@ -1822,9 +1822,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setHighlightAlternateField($field, $field_override) {}
+    public function setHighlightAlternateField($field, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Specify a formatter for the highlight output
@@ -1838,9 +1838,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setHighlightFormatter($formatter, $field_override) {}
+    public function setHighlightFormatter($formatter, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Sets a text snippet generator for highlighted text
@@ -1855,9 +1855,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setHighlightFragmenter($fragmenter, $field_override) {}
+    public function setHighlightFragmenter($fragmenter, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * The size of fragments to consider for highlighting
@@ -1871,9 +1871,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setHighlightFragsize($size, $field_override) {}
+    public function setHighlightFragsize($size, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Use SpanScorer to highlight phrase terms
@@ -1908,9 +1908,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setHighlightMaxAlternateFieldLength($fieldLength, $field_override) {}
+    public function setHighlightMaxAlternateFieldLength($fieldLength, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Specifies the number of characters into a document to look for suitable snippets
@@ -1937,9 +1937,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setHighlightMergeContiguous($flag, $field_override) {}
+    public function setHighlightMergeContiguous($flag, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Specify the maximum number of characters to analyze
@@ -2007,9 +2007,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setHighlightSimplePost($simplePost, $field_override) {}
+    public function setHighlightSimplePost($simplePost, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Sets the text which appears before a highlighted term
@@ -2023,9 +2023,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setHighlightSimplePre($simplePre, $field_override) {}
+    public function setHighlightSimplePre($simplePre, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Sets the maximum number of highlighted snippets to generate per field
@@ -2039,9 +2039,9 @@
      * @return SolrQuery <p>
      * Returns the current SolrQuery object, if the return value is used.
      * </p>
      */
-    public function setHighlightSnippets($value, $field_override) {}
+    public function setHighlightSnippets($value, $field_override = '') {}
 
     /**
      * (PECL solr &gt;= 0.9.2)<br/>
      * Whether to highlight phrase terms only when they appear within the query phrase