Wow! So I never knew this...and perhaps it's just me but thought I should put it out there....so I have upgraded to "vlucas/phpdotenv": "^5.4.0"
as it seems all of my projects were still on ^2.4.0
.
What I never realised is that we should also be maintaining the index.php file and the craft files too. As these don't fall into the regular craft updates.
So today, I have just updated the index.php added the new bootstrap.php file and also updated the craft file too - so these all work with "vlucas/phpdotenv": "^5.4.0"
I must ensure I look out for updates on these files in the future. Perhaps everyone already knows this, but I never did until now. 😳
Here is the link to the craft repo: https://github.com/craftcms/craft
Here is my original message on Discord: https://discord.com/channels/456442477667418113/456442867163070466/923165923861475329