Have you compared the code in your version of Bedrock to the latest? There are changes that you are required to make based on phpdotenv changes
Searching for the error message you provided came up with this topic which links to a GitHub PR - check out that code diff and make sure that you’ve got that change made to config/application.php