Jump to content

Error Laminas\Diactoros\ServerRequest


Recommended Posts

I'm currently creating a module using guzzlehttp/guzzle and symfony/mailer package.
The module works as intended, it grabs data from API and send email using symfony mailer by copying the SMTP credential from WHMCS configuration in database. But, after few times sending email, I'm starting to get ErrorException when opening pages in WHMCS (mostly those which URL ended with index.php). From the error stack, it says the error comes from Laminas\Diactoros package. I don't have any experience with that module and I don't know why it is used by WHMCS.

Anyobody have a clue about Laminas\Diactoros package and what it does?
 

Whoops\Exception\ErrorException: Declaration of Laminas\Diactoros\ServerRequest::withCookie Params(array $cookies): Laminas\Diactoros\ServerRequest must be compatible with Psr\Http\Message\ServerRequestInterface::withCookie Params(array $cookies)

 

Edited by berstein
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated