I tested Cakephp 4.6.3 with composer 2.8.x which work correctly, but with composer 2.9 not work. Do you have any suggestions for the following message:
Problem 1
Looks like you tried these two versions of composer on two different versions of PHP? The errors you show here are from trying to do something that requires PHP 8.x when you are running on 7.4.
The minimum requirement for cakephp 4.6.x is PHP 7.4 (from the documentation).
I tried to install cakephp 4.6.x with composer 2.9 and php7.4 and it didn’t work.
Alright, the problem is this security issue from a library we use in CakePHP:
This was fixed AFTER laminas/laminas-diactoros dropped PHP 7.4 in 2.18.0
Therefore, technically CakePHP 4.6 is not PHP 7.4 compatible anymore as composer needs to install an older, PHP 7.4 compatible but insecure package of laminas/laminas-diactoros
unless you want to skip that security update and add the following to your composer.json