We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2585941 commit 006a276Copy full SHA for 006a276
src/Subscription.php
@@ -28,7 +28,11 @@ public function __construct(
28
private ?string $authToken = null,
29
ContentEncoding|string|null $contentEncoding = null,
30
) {
31
- if ($publicKey || $authToken || $contentEncoding) {
+ if (
32
+ (null !== $publicKey && '' !== $publicKey)
33
+ || (null !== $authToken && '' !== $authToken)
34
+ || null !== $contentEncoding
35
+ ) {
36
if (is_string($contentEncoding)) {
37
try {
38
if (empty($contentEncoding)) {
0 commit comments