Skip to content

Commit

Permalink
Fix typo in 'metric' argument of Stats function in IndicesNamespace.php
Browse files Browse the repository at this point in the history
Argument was not correctly extracted, so it was impossible to compose requests like `/_stats/indices` by setting `metric` param
Also related to 2.0 and master
  • Loading branch information
iJackUA committed Mar 3, 2015
1 parent 850240a commit 4e20088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elasticsearch/Namespaces/IndicesNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function delete($params = array())
*/
public function stats($params = array())
{
$metric = $this->extractArgument($params, '$metric');
$metric = $this->extractArgument($params, 'metric');

$index = $this->extractArgument($params, 'index');

Expand Down

0 comments on commit 4e20088

Please sign in to comment.