From 615ef1b18845bee60a22118c16cf532c95b57cb2 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Tue, 7 Apr 2020 14:22:32 +0100 Subject: [PATCH] Use config instead of env helper method --- src/LaravelDeployer/Commands/BaseCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LaravelDeployer/Commands/BaseCommand.php b/src/LaravelDeployer/Commands/BaseCommand.php index b09a3f2..6e3e7ee 100644 --- a/src/LaravelDeployer/Commands/BaseCommand.php +++ b/src/LaravelDeployer/Commands/BaseCommand.php @@ -121,7 +121,6 @@ public function process(string $command) public function isTtySupported() { - return ! (env('APP_ENV') === 'testing') - && Process::isTtySupported(); + return config('app.env') !== 'testing' && Process::isTtySupported(); } }