Skip to content

Commit

Permalink
Merge pull request #53 from Catsys/master
Browse files Browse the repository at this point in the history
fix payload crash in activator
  • Loading branch information
vyuldashev committed Apr 4, 2018
2 parents 5094ff9 + 66d7617 commit 2235305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Conversation/Activators/Payload.php
Expand Up @@ -25,6 +25,6 @@ public function __construct(string $value)
*/
public function matches(MessageReceived $message): bool
{
return hash_equals($this->value, $message->getData());
return $message->getData() ? hash_equals($this->value, $message->getData()) : false;
}
}

0 comments on commit 2235305

Please sign in to comment.