Skip to content

Commit

Permalink
php 8.2 compatibility update (#171)
Browse files Browse the repository at this point in the history
* php 8.2 compatibility update

* Allow overriding of _map
  • Loading branch information
Xon authored Nov 9, 2022
1 parent 85df015 commit dccc8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ protected function decode_reply($name, $response, array &$arguments = array() )
*/
private static function _prepare_command($args)
{
return sprintf('*%d%s%s%s', count($args), CRLF, implode(CRLF, array_map(array('self', '_map'), $args)), CRLF);
return sprintf('*%d%s%s%s', count($args), CRLF, implode(CRLF, array_map([static::class, '_map'], $args)), CRLF);
}

private static function _map($arg)
Expand Down

0 comments on commit dccc8a4

Please sign in to comment.