Closed wivaku closed 4 years ago
In recent Dotenv versions getenv() is discouraged. https://github.com/vlucas/phpdotenv#putenv-and-getenv
getenv()
The current code relies on getenv(): https://github.com/lesstif/php-jira-rest-client/blob/f4d872daeb9af30d6bb000a4add245f23e920f25/src/Configuration/DotEnvConfiguration.php#L56
Should be $_ENV[$key] instead.
$_ENV[$key]
Originally posted by @wivaku in https://github.com/lesstif/php-jira-rest-client/issues/319#issuecomment-703747954
BTW. the mentioned Dotenv::createUnsafeImmutable() did not seem to work as workaround for existing getenv().
Dotenv::createUnsafeImmutable()
@wivaku thanks!
In recent Dotenv versions
getenv()
is discouraged. https://github.com/vlucas/phpdotenv#putenv-and-getenvThe current code relies on
getenv()
: https://github.com/lesstif/php-jira-rest-client/blob/f4d872daeb9af30d6bb000a4add245f23e920f25/src/Configuration/DotEnvConfiguration.php#L56Should be
$_ENV[$key]
instead.Originally posted by @wivaku in https://github.com/lesstif/php-jira-rest-client/issues/319#issuecomment-703747954