Skip to content

Fix Implicitly marking parameters TransactionalEmailsApi.php on php 8.4 #51

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

fabricebegue
Copy link

On PHP 8.4 when we sent a transactional email, some deprecated messages are log

Message log detail : Deprecated: Brevo\Client\Api\TransactionalEmailsApi::__construct(): Implicitly marking parameter $client as nullable is deprecated, the explicit nullable type must be used instead in /var/www/app/vendor/getbrevo/brevo-php/lib/Api/TransactionalEmailsApi.php on line 72

Message log : Deprecated: Brevo\Client\Api\TransactionalEmailsApi::__construct(): Implicitly marking parameter $client as nullable is deprecated, the explicit nullable type must be used instead in /var/www/app/vendor/getbrevo/brevo-php/lib/Api/TransactionalEmailsApi.php on line 72
Deprecated implicitly marking parameter
Deprecated implicitly marking parameter
Deprecated implicitly marking parameter
Deprecated implicitly marking parameter
Deprecated implicitly marking parameter
@sigkoro
Copy link

sigkoro commented Feb 11, 2025

This pull request should be accepted in order to migrate to PHP 8.4
Thank you

@coatpont
Copy link

coatpont commented Mar 2, 2025

how can we get this merged, please advise on the process - this is creating a lot of noise in our log files

@nclavaud
Copy link

This PR should fix #57.

But as stated by @LaurentBrieu in the above issue, this fix will break compatibility with PHP < 7.1 and as such, the minimum PHP version should be updated in composer.json and I guess this will require a major release.

Much needed indeed!

@Renrhaf
Copy link

Renrhaf commented Mar 17, 2025

+1 !

@brei0x
Copy link

brei0x commented Mar 25, 2025

+1

@Huluti
Copy link

Huluti commented Mar 27, 2025

+1!

1 similar comment
@thomasfaure
Copy link

+1!

@nclavaud
Copy link

@sowmyahora2001 @nik-sib @preetishishodia7 would you please consider merging this, stop supporting PHP 5.6/7.0, and tag a new version? 🙏

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

Successfully merging this pull request may close these issues.

8 participants