From 090d2806cc0fce9dc29cd918bec4a20ba38b2529 Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Mon, 30 May 2022 21:55:31 +0200 Subject: [PATCH] Specify parameter with constants --- src/AbstractUpdateAction.php | 2 ++ src/Reindex.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/AbstractUpdateAction.php b/src/AbstractUpdateAction.php index a7c33bfdba..74b186949c 100644 --- a/src/AbstractUpdateAction.php +++ b/src/AbstractUpdateAction.php @@ -303,6 +303,8 @@ public function hasRetryOnConflict() /** * @param bool|string $refresh * + * @phpstan-param bool|Reindex::REFRESH_* $refresh + * * @return $this */ public function setRefresh($refresh = true) diff --git a/src/Reindex.php b/src/Reindex.php index 1fd48d8d66..81e1d85d4a 100644 --- a/src/Reindex.php +++ b/src/Reindex.php @@ -73,6 +73,11 @@ public function run(): Response return $this->_lastResponse; } + /** + * @param bool|string $value + * + * @phpstan-param bool|self::WAIT_FOR_COMPLETION_* $value + */ public function setWaitForCompletion($value): void { if (\is_bool($value)) {