You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: system/Commands/Utilities/Environment.php
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ final class Environment extends BaseCommand
86
86
publicfunctionrun(array$params)
87
87
{
88
88
if ($params === []) {
89
-
CLI::write(sprintf('Your environment is currently set as %s.', CLI::color($_SERVER['CI_ENVIRONMENT'] ?? ENVIRONMENT, 'green')));
89
+
CLI::write(sprintf('Your environment is currently set as %s.', CLI::color(service('superglobals')->server('CI_ENVIRONMENT') ?? ENVIRONMENT, 'green')));
90
90
CLI::newLine();
91
91
92
92
returnEXIT_ERROR;
@@ -119,7 +119,8 @@ public function run(array $params)
119
119
// force DotEnv to reload the new environment
120
120
// however we cannot redefine the ENVIRONMENT constant
0 commit comments