Closed alperengunes closed 11 months ago
"message": "Your version of PHP is affected by serious garbage collector bugs related to fibers. Please upgrade to a newer version of PHP, i.e. >= 8.1.17 or => 8.2.4",
Docker will install the newer version automatically if you rebuild the container.
I think you can do that with:
sail build --no-cache
sail up
You can also change the image name in your docker-compose.yml from sail-8.1/app
to sail-8.1/app2
which forces sail to rebuild the docker container.
You can also log into the root shell and to an update with:
sail root-shell
and in there execute
apt update && apt upgrade
I tested a new application with a custom image name, to check if with the current settings the correct php version is installed:
git clone git@github.com:Jubeki/sail-pr-630.git
cd sail-pr-630
cp .env.example
sail up
sail artisan key:generate
sail php -v
v8.1.12 is installed by default.
Most packages require php 8.1.17 and above.