We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fc49fd commit 61b1696Copy full SHA for 61b1696
1 file changed
system/CodeIgniter.php
@@ -528,7 +528,7 @@ protected function detectEnvironment()
528
{
529
// Make sure ENVIRONMENT isn't already set by other means.
530
if (! defined('ENVIRONMENT')) {
531
- define('ENVIRONMENT', getenv('CI_ENVIRONMENT') ?? 'production');
+ define('ENVIRONMENT', env('CI_ENVIRONMENT', 'production'));
532
}
533
534
0 commit comments