Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Version 8.2 and up #1114

Open
richardczeiger opened this issue Oct 2, 2024 · 3 comments
Open

PHP Version 8.2 and up #1114

richardczeiger opened this issue Oct 2, 2024 · 3 comments

Comments

@richardczeiger
Copy link

Hi there, can you please confirm that the library is compatible with PHP Version 8.2. I would also love to know when you are planning for it to be supported on version 8.3 and 8.4
Thanks!

@54853315
Copy link

I tested the latest release 8.1.2 from SendGrid, and it runs smoothly on PHP 8.3.13.

@naveenvalecha
Copy link

I'm also seeking advice for the library usage on PHP 8.3
The library is not explicitly testing on PHP 8.2 and 8.3
Here's the current testing matrix https://github.com/sendgrid/sendgrid-php/blob/main/.github/workflows/test-and-deploy.yml#L20

@oversanne
Copy link

It triggers a deprecated issue on PHP8.4, in SendGrid\Mail\Mail

 1x: SendGrid\Mail\Mail::__construct(): Implicitly marking parameter $globalSubstitutions as nullable is deprecated, the explicit nullable type must be used instead
    1x in SendGridTest::setUp from App\Tests\Proxy\Email
public function __construct(
        $from = null,
        $to = null,
        $subject = null,
        $plainTextContent = null,
        $htmlContent = null,
        array $globalSubstitutions = null // this is deprecated, should be ?array $globalSubstitutions = null instead
    ) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants