Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b99b069

Browse files
committed
Clarify the condition
1 parent 9e8c56b commit b99b069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Adapter/AmqpExt/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,6 @@ private function clear(): void
218218

219219
private function shouldSetup(): bool
220220
{
221-
return array_key_exists('auto-setup', $this->connectionCredentials) ? 'false' !== $this->connectionCredentials['auto-setup'] : true;
221+
return !array_key_exists('auto-setup', $this->connectionCredentials) || 'false' !== $this->connectionCredentials['auto-setup'];
222222
}
223223
}

0 commit comments

Comments
 (0)