same issue for me on a Mac m1 on a brand new trellis/bedrock/sage10 project but with php 8.2 alert msg.
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0". You are running 8.1.27. in /srv/www/sage10.co.uk/current/web/app/themes/xxxx/vendor/composer/platform_check.php on line 24
@Twansparant I tried to bump the php version constraint to >=8.2 in the composer.json
and delete vendor folder and composer.lock, and run again composer install
and composer update
, with no luck.
this solution worked, change the php version here group_vars/all/main.yml >change php version from 8.1 to 8.2, but I am wondering if it is a good thing to do or if it will cause more problems in the future. (for example I saw in another post that WP-CLI is incompatible with PHP 8.2 so I am not sure if changing this line in group_vars/all/main.yml is the right thing to do)
any ideas?