I have a problem with coposer.
I use a php container php:8.3-fpm
stephane @ dagda => /www/projets/vc $
└─ $ ▶ docker exec -ti php_vc_www /bin/bash
root@75620432819b:/var/www/html# /usr/local/bin/php -v
PHP 8.3.3 (cli) (built: Feb 16 2024 21:02:14) (NTS)
Updated in composer.json
-> the version was wrong: 8.2
I have modified to be at 8.3
"php": "^8.3",
Update via composer:
stephane @ dagda => /www/projets/vc$
└─ $ ▶ docker-compose run --rm composer_vc_www update
Starting php_vc_www ... done
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires php ^8.3 but your php version (8.2.2) does not satisfy that requirement.
In the container everything works very well.
A php page with phpinfo() show version 8.3.3