Skip to content

Commit

Permalink
Use getenv() instead of Env::get() before booting the app (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored May 17, 2024
1 parent 9eedf3c commit 00e984e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions laravel/bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ static function ($app) use ($config, $hasEnvironmentFile) {
);
};

if (! defined('TESTBENCH_WORKING_PATH') && ! is_null(Env::get('TESTBENCH_WORKING_PATH'))) {
define('TESTBENCH_WORKING_PATH', Env::get('TESTBENCH_WORKING_PATH'));
if (! defined('TESTBENCH_WORKING_PATH') && is_string(getenv('TESTBENCH_WORKING_PATH'))) {
define('TESTBENCH_WORKING_PATH', getenv('TESTBENCH_WORKING_PATH'));
}

$app = $createApp(realpath(__DIR__.'/../'));
Expand Down

0 comments on commit 00e984e

Please sign in to comment.