From e8a5d5335c8d17cf672104db6cd97448bcd6df86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Wo=C5=9B?= Date: Wed, 17 Feb 2021 17:22:43 +0100 Subject: [PATCH] Update Search.php (#7) Change annotation for setSource method reported in https://github.com/ongr-io/ElasticsearchDSL/issues/254 --- src/Search.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Search.php b/src/Search.php index da8372b0..407848d1 100644 --- a/src/Search.php +++ b/src/Search.php @@ -63,7 +63,7 @@ class Search * operations return the contents of the _source field unless you have used the * stored_fields parameter or if the _source field is disabled. * - * @var bool + * @var array|bool|string */ private $source; @@ -518,7 +518,7 @@ public function setSize($size) } /** - * @return bool + * @return array|bool|string */ public function isSource() { @@ -526,7 +526,7 @@ public function isSource() } /** - * @param bool $source + * @param array|bool|string $source * * @return $this */