Skip to content

Commit

Permalink
change argument order of implode (#131)
Browse files Browse the repository at this point in the history
to follow the documented order,
reverse order is deprecated from php 7.4 on
  • Loading branch information
Flyingmana authored and colinmollenhour committed Nov 26, 2019
1 parent ee56982 commit bd1da46
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 @@ -1449,7 +1449,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(array_map(array('self', '_map'), $args), CRLF), CRLF);
return sprintf('*%d%s%s%s', count($args), CRLF, implode(CRLF, array_map(array('self', '_map'), $args)), CRLF);
}

private static function _map($arg)
Expand Down

0 comments on commit bd1da46

Please sign in to comment.