mezzio-skeleton: Error on clean skeleton installation with PHP 8.1 and elie29/zend-phpdi-config
Bug Report
I encountered an error on a clean skeleton installation. I am testing with PHP 8.1 and Composer 2.3.7
Q | A |
---|---|
Version(s) | x.y.z |
PHP | 8.1 |
Composer | 2.3.7 |
Summary
I installed Mezzio Skeleton from composer create-project
and encountered an error that elie29/zend-phpdi-config
was locked at 6.0 and, thus locked into PHP ^7.1. This is not even a module I requested. I requested to use the laminas-servicemanager strategy.
Current behavior
Skeleton not installed. Composer shows an error with an unrequested package. I was able to push through this by manually editing composer.lock
and removing the elie29/zend-phpdi-config
package entirely.
How to reproduce
- Run
composer create-project mezzio/mezzio-skeleton mezzio
- Select the following: 3 (Modular), 2 (laminas-servicemanager), 1 (FastRoute), n (None of the above), 1 (Whoops)
This is also reproduced with the Minimal installation.
Expected behavior
Skeleton installed.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (17 by maintainers)
Commits related to this issue
- The configuration for the installer is wrong #71 Signed-off-by: Elie NEHME <elie29@users.noreply.github.com> — committed to elie29/mezzio-skeleton by elie29 2 years ago
- The configuration for the installer is wrong #71 Signed-off-by: Elie NEHME <elie29@users.noreply.github.com> — committed to elie29/mezzio-skeleton by elie29 2 years ago
- Merge pull request #99 from elie29/patch-2 The configuration for the installer is wrong #71 — committed to mezzio/mezzio-skeleton by Ocramius 2 years ago
Looks like the configuration for the installer is wrong:
https://github.com/mezzio/mezzio-skeleton/blob/3b02a412cc904908fea44fd410996322d7be2c7f/src/MezzioInstaller/config.php#L11-L13
It must be the same as in the Composer configuration:
https://github.com/mezzio/mezzio-skeleton/blob/3b02a412cc904908fea44fd410996322d7be2c7f/composer.json#L56
@elie29 Go for it. Thanks in advance! 👍🏻
See #82
@froschdesign the bridge needs an update to be compatible with php8.1. I am working on it
Hey @elie29, thanks for the feedback: I think you are already discussing this with @samsonasik in #72, sorry for the duplicate noise.
@Ocramius the bridge is maintained, I need more info about the error. For PHP 8+, we need the v8 for the bridge