We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running "liuggio/statsd-php-client": "1.0.18" under php8.2 the following error is shown:
"liuggio/statsd-php-client": "1.0.18"
Use of "self" in callables is deprecated /workspace/src/vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/StatsdClient.php:94
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
"self::doReduce"
[ self::class, 'doReduce' ]
The text was updated successfully, but these errors were encountered:
StatsdClient: Fix use of "self" in callable
8e29851
Fixes liuggio#60
This can be resolved now.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
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 callableThe text was updated successfully, but these errors were encountered: