Skip to content

PHP Warning: Trying to access array offset on value of type bool in colinmollenhour/credis/Client.php on line 1156 #187

@xtremevision

Description

@xtremevision

Hi,

Using Magento 2.4.6-p2 open source and colinmollenhour/credis v1.16.0. Using a command line script I am getting this error:

PHP Warning: Trying to access array offset on value of type bool in colinmollenhour/credis/Client.php on line 1156

Not sure why this is happening. Have not debugged in depth, but

$execResponse = array_pop($response);

is actually false, so doing:

                        if(!empty($execResponse))
                        {
                            foreach ($queuedResponses as $key => $command) {
                                list($name, $arguments) = $command;
                                $response[] = $this->decode_reply($name, $execResponse[$key], $arguments);
                            }    
                        }

suppresses the warning.

Michael.

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