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. 😳