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
Bug Report
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
andlaminas-cache-storage-adapter-redis
.I am using composer v2.6.3
Expected behavior
No error occurs.