Skip to content

Conflict with redis extension using v2.18.0 shim #1200

@mdeboer

Description

@mdeboer

I suddenly ran into an issue upgrading GrumPHP from v2.17.0 to v2.18.0 using phpro/grumphp-shim. When I run vendor/bin/grumphp or vendor/bin/grumphp.phar, I get an error from the "Box Requirements Checker":

Box Requirements Checker
========================

> Using PHP 8.2.29
> PHP is using the following php.ini file:
  /usr/local/etc/php/php.ini

> Checking Box requirements:
  .............E.

                                                                                                                                                                                                                                                                                                      
 [ERROR] Your system is not ready to run the application.                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                      

Fix the following mandatory requirements:
=========================================

 * The package "symfony/cache" conflicts with the extension "redis". You need to disable it in order to run this application.

Now please note that I'm using the shim version here, so this is not some conflict with my project's dependencies.

I am presuming that humbug/box is being used to build the PHAR and apparently it is running a requirements checker before anything is run from the PHAR itself.

Apparently the latest changes to the composer.json have led to a false-positive as I'm not aware of any conflict with the redis extension. In fact, the Symfony documentation mentions this:

Requirements: At least one Redis server must be installed and running to use this adapter. Additionally, this adapter requires a compatible extension or library that implements \Redis, \RedisArray, RedisCluster, \Relay\Relay, \Relay\Cluster or \Predis.

Currently downgrading to v2.17.0 fixes it for me, but hopefully a fix can be found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions