I have a brand new sail setup V10 with all the latest code. I just set this up.
I'm having a problem that even though I am using the correct php 8.2 version in my docker-compose, and the Dockerfile for 8.2 is correct, it ends up with php 8.1 every time I rebuild it. The image says sail-8.2/app. There are no references to 8.1 anywhere in all of this.
I saw the suggestion to run update-alternatives --set php /usr/bin/php8.2 in my dockerfile but that didn't work. I tried running that on the finished container, but it says:
update-alternatives: error: alternative /usr/bin/php8.2 for php not registered;
Don't know what the heck happened. Blew it all way and did a fresh laravel build with no additions, and its set up to use 8.2 by default It was running 8.1
Did pretty much nothing then rebuilt it again and now its php 8.2
So the problem is fixed, but I still wish I knew what the heck was going on. This is on Windows 11 WSL