When running "liuggio/statsd-php-client": "1.0.18" under php8.2 the following error is shown:
Use of "self" in callables is deprecated
/workspace/src/vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/StatsdClient.php:94
The code:
public function reduceCount($arrayData)
{
if (is_array($arrayData)) {
$arrayData = array_reduce($arrayData, "self::doReduce", array());
}
return $arrayData;
}
Change "self::doReduce" to [ self::class, 'doReduce' ] or similiar callable
When running
"liuggio/statsd-php-client": "1.0.18"under php8.2 the following error is shown:The code:
Change
"self::doReduce"to[ self::class, 'doReduce' ]or similiar callable