Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key 2 during component installation #73

Open
boesing opened this issue Sep 19, 2023 · 1 comment
Open

Undefined array key 2 during component installation #73

boesing opened this issue Sep 19, 2023 · 1 comment
Labels
Bug Something isn't working

Comments

@boesing
Copy link
Member

boesing commented Sep 19, 2023

Bug Report

Q A
Version(s) 3.3.0

Summary

When installing all my dependencies, I get Undefined array key 2 after selecting [2] config/config.php

Current behavior

Undefined array key 2

How to reproduce

Can reproduce this locally, but it happens when having a mezzio project with laminas-cache and laminas-cache-storage-adapter-redis.


  Please select which config file you wish to inject 'Laminas\Cache\Storage\Adapter\Redis\ConfigProvider' into:
  [0] Do not inject
  [1] config/development.config.php.dist
  [2] config/config.php
  Make your selection (default is 1):2

  Remember this option for other packages of the same type? (Y/n)
    Installing Laminas\Cache\Storage\Adapter\Redis\ConfigProvider from package laminas/laminas-cache-storage-adapter-redis

  Please select which config file you wish to inject 'Laminas\Cache\Storage\Adapter\Redis' into:
  [0] Do not inject
  [1] config/development.config.php.dist
  [2] config/config.php
  Make your selection (default is 1):2

  Remember this option for other packages of the same type? (Y/n)Y
    Installing Laminas\Cache\Storage\Adapter\Redis from package laminas/laminas-cache-storage-adapter-redis

In AbstractInjector.php line 189:
                         
  Undefined array key 2  

I am using composer v2.6.3

Expected behavior

No error occurs.

@boesing boesing added the Bug Something isn't working label Sep 19, 2023
@boesing
Copy link
Member Author

boesing commented Sep 19, 2023

This most probably relates to #68
Nah, have the same issue with 3.2 and 3.1 and 3.0, so its not related...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant