Skip to content

Commit

Permalink
Fix param documentation for flush(), add type hint (#1238)
Browse files Browse the repository at this point in the history
`Index::request()` has a type hint on the 4th parameter to be an array, so adding the type hint is ok.
  • Loading branch information
mweibel authored and ruflin committed Jan 30, 2017
1 parent 3a2d298 commit d0475e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Elastica/Index.php
Expand Up @@ -487,13 +487,13 @@ public function clearCache()
/**
* Flushes the index to storage.
*
* @param bool $refresh
* @param array $options
*
* @return Response Response object
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html
*/
public function flush($options = [])
public function flush(array $options = [])
{
$path = '_flush';

Expand Down

0 comments on commit d0475e8

Please sign in to comment.