Skip to content

Commit

Permalink
Specify parameter with constants
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed May 30, 2022
1 parent 8dd33b3 commit 090d280
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AbstractUpdateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ public function hasRetryOnConflict()
/**
* @param bool|string $refresh
*
* @phpstan-param bool|Reindex::REFRESH_* $refresh
*
* @return $this
*/
public function setRefresh($refresh = true)
Expand Down
5 changes: 5 additions & 0 deletions src/Reindex.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 090d280

Please sign in to comment.