Skip to content

Commit e3f49ac

Browse files
committed
Fix condition not explicitly checking for null
1 parent 73f3520 commit e3f49ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Messaging/CloudMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ private static function determineTargetFromArray(array $data): MessageTarget
338338
}
339339

340340
$targetValue = $data[MessageTarget::TOPIC] ?? null;
341-
if ($targetValue) {
341+
if ($targetValue !== null) {
342342
return MessageTarget::with(MessageTarget::TOPIC, $targetValue);
343343
}
344344

0 commit comments

Comments
 (0)