Skip to content

Predis Issue Undefined array key 0 #691

@ndoulgeridis

Description

@ndoulgeridis

I am using doctrine and class metadata caching. All is fine except I get this warning

PHP Warning: Undefined array key 0 in /app/vendor/predis/predis/src/Command/Command.php on line 107

This is a normal warning because when I go through this line of code I see for example:

image

So there is no $arguments[0]:

image

This is the call stack:

image

It can be fixed by checking if isset first.

Relevant issue I created in Doctrine: doctrine/orm#8653

They replied that is an error on Predis side. I could add a merge request with an isset first. Just let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions