From dccc8a46586475075fbb012d8bd523b8a938c2dc Mon Sep 17 00:00:00 2001 From: Xon Date: Wed, 9 Nov 2022 09:18:39 +0800 Subject: [PATCH] php 8.2 compatibility update (#171) * php 8.2 compatibility update * Allow overriding of _map --- Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client.php b/Client.php index 97c18f1..4689a1b 100755 --- a/Client.php +++ b/Client.php @@ -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)