Skip to content

PHP Deprecated: implode(): Passing glue string after array is deprecated. #382

@sjopz

Description

@sjopz

Hi,

Who can help me make these code working whitout warnings? It is a file from Redis PHP Rescue

PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /public_html/vendor/chrisboulton/php-resque/lib/Redisent/Redisent.php on line 73

Here is the code

/* Build the Redis unified protocol command /
array_unshift($args, strtoupper($name));
$command = sprintf('
%d%s%s%s', count($args), CRLF, implode(array_map(array($this, 'formatArgument'), $args), CRLF), CRLF);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions