getsno / freshservice-api

API client for freshservice.com
MIT License
1 stars 1 forks source link

Null given to $fromEmail on Conversations #6

Closed clarg18 closed 1 year ago

clarg18 commented 1 year ago

>>> $fresh->getTicketById(59408); TypeError: Gets\Freshservice\Entities\Conversation::setFromEmail(): Argument #1 ($fromEmail) must be of type string, null given, called in /var/www/html/vendor/getsno/freshservice-api/src/Entities/Conversation.php on line 147

clarg18 commented 1 year ago
    public function setFromEmail(string $fromEmail): self
    {
        $this->fromEmail = $fromEmail;

        return $this;
    }

Type set as string but this can be null for private and public notes.