Ok, I use new phpdotenv and many change...
Don't use getenv only $_ENV example $host = $_ENV['DB_HOST'];
and
$dotenv = Dotenv\Dotenv::createImmutable(DIR); $dotenv->load(); => "createImmutable"
Thanks for bringing this into my attention.
New version is really good. Also, I have update the guide to reflect the same.
Are you still getting the same error @skipperski ? or have you solved it using the new approach?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ok, I use new phpdotenv and many change...
Don't use getenv only $_ENV example $host = $_ENV['DB_HOST'];
and
$dotenv = Dotenv\Dotenv::createImmutable(DIR);
$dotenv->load();
=> "createImmutable"
Thanks for bringing this into my attention.
New version is really good. Also, I have update the guide to reflect the same.
Are you still getting the same error @skipperski ? or have you solved it using the new approach?