Skip to content

Commit

Permalink
Fix YII_ENV fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed May 23, 2021
1 parent c766ab5 commit 3597453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yii
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use Yiisoft\Di\Container;
use Yiisoft\Yii\Console\Application;
use Yiisoft\Yii\Console\Output\ConsoleBufferedOutput;

define('YII_ENV', getenv('env') ?? 'production');
define('YII_ENV', getenv('env') ?: 'production');

require_once 'vendor/autoload.php';

Expand Down

0 comments on commit 3597453

Please sign in to comment.