Commit 174dbcb4 authored by Oleksii Pass's avatar Oleksii Pass
Browse files

added return type to search

parent 37b5554c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
    }
  ],
  "require": {
    "php": ">=7.2.0",
    "php": ">=7.4.0",
    "illuminate/database": "~4.2|^5|^6|^7|^8|^9",
    "illuminate/config": "~4.2|^5|^6|^7|^8|^9",
    "nesbot/carbon": "~1.0|~2",
+9 −3
Original line number Diff line number Diff line
@@ -253,8 +253,11 @@ trait ElasticquentTrait
     *
     * Using this method, a custom query can be sent to Elasticsearch.
     *
     * @param  $params parameters to be passed directly to Elasticsearch
     * @return ElasticquentResultCollection
     * @template TKey of array-key
     * @template TModel of \Illuminate\Database\Eloquent\Model
     *
     * @param array $params parameters to be passed directly to Elasticsearch
     * @return ElasticquentResultCollection<TKey, TModel>
     */
    public static function complexSearch($params)
    {
@@ -270,9 +273,12 @@ trait ElasticquentTrait
     *
     * Simple search using a match _all query
     *
     * @template TKey of array-key
     * @template TModel of \Illuminate\Database\Eloquent\Model
     *
     * @param string $term
     *
     * @return ElasticquentResultCollection
     * @return ElasticquentResultCollection<TKey, TModel>
     */
    public static function search($term = '')
    {