whatsapp-cloud-api icon indicating copy to clipboard operation
whatsapp-cloud-api copied to clipboard

Method replyTo should accept null as parameter

Open jfradj opened this issue 3 months ago • 0 comments

Hello,

I think that the the method prototype isn't totally correct:

public function replyTo(string $message_id): self

Indeed, it should allow to set the value to null, so the prototype should be:

public function replyTo(?string $message_id): self

(note the question mark to all null to be passed as an argument). Right now, I used the empty string as a workaround, but it's a little bit ugly 🥲

I've audited the code, and everything has been designed to make that possible.

jfradj avatar Apr 06 '24 11:04 jfradj