Skip to content

Commit 58d2fec

Browse files
exaby73transistive
authored andcommitted
fix: Compare env to false instead of using empty
1 parent 0593baa commit 58d2fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bolt/ProtocolFactory.php

Lines changed: 1 addition & 1 deletion
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)