Skip to content

Commit

Permalink
StatsdClient: Fix use of "self" in callable
Browse files Browse the repository at this point in the history
Fixes #60
  • Loading branch information
reedy authored Jan 10, 2023
1 parent c941165 commit 8e29851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Liuggio/StatsdClient/StatsdClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private static function doReduce($reducedMetrics, $metric)
public function reduceCount($arrayData)
{
if (is_array($arrayData)) {
$arrayData = array_reduce($arrayData, "self::doReduce", array());
$arrayData = array_reduce($arrayData, array(self::class, "doReduce"), array());
}

return $arrayData;
Expand Down

0 comments on commit 8e29851

Please sign in to comment.