Skip to content

Commit d281abc

Browse files
authored
fix: Compare env to false instead of using empty
1 parent 8518a51 commit d281abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bolt/ProtocolFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function createProtocol(IConnection $connection, AuthenticateInterface $a
3434
{
3535
$boltOptoutEnv = getenv('BOLT_ANALYTICS_OPTOUT');
3636
/** @psalm-suppress RiskyTruthyFalsyComparison */
37-
if (empty($boltOptoutEnv)) {
37+
if ($boltOptoutEnv === false) {
3838
putenv('BOLT_ANALYTICS_OPTOUT=1');
3939
}
4040

0 commit comments

Comments
 (0)