Skip to content

Commit

Permalink
Use config instead of env helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Apr 7, 2020
1 parent 81be71f commit 615ef1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LaravelDeployer/Commands/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 615ef1b

Please sign in to comment.