We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e91553 commit 92e348dCopy full SHA for 92e348d
src/MessageProcessors/Mqtt311MessageProcessor.php
@@ -66,10 +66,10 @@ protected function parseAndValidateSubscribeAcknowledgementMessage(string $data)
66
/**
67
* Determines if the given message is a PUBLISH message and contains the unicode null character U+0000.
68
*
69
- * @param Message $message
+ * @param Message|null $message
70
* @return bool
71
*/
72
- private function isPublishMessageWithNullCharacter(Message $message): bool
+ private function isPublishMessageWithNullCharacter(?Message $message): bool
73
{
74
return $message !== null
75
&& $message->getType()->equals(MessageType::PUBLISH())
0 commit comments