mailchimp-transactional-php
mailchimp-transactional-php copied to clipboard
Fix compatible with php 8.2
Error occurs when using php 8.2 Creation of dynamic property MailchimpTransactional\Api\AllowlistsApi::$config is deprecated.
Cool, I need it too!
Me too. Please merge this pull request.
By the way, there are still some errors in lib/Configuration.php
@Moishe Could you merge this pull request?
Me too. Please merge this pull request.
By the way, there are still some errors in lib/Configuration.php
Looks like you can not make them protected. They need to be public.
Hi there! As noted in this project's README, this is an autogenerated project. PRs should be sent to https://github.com/mailchimp/mailchimp-client-lib-codegen
I don't work at Mailchimp anymore so unfortunately can't merge any PRs to any projects. However I'll ping some folks who are still there to give them a heads-up that there might be a PR coming on the codegen project.
The methods need to be made public, starting from allowlists to whitelists... would be grand to have that updated and merged.
As I said, I don't think anyone from Mailchimp is monitoring this thread (or this repo). You might have better luck over on the repo I linked to above.
I made new pull request https://github.com/mailchimp/mailchimp-client-lib-codegen/pull/328/ please vote for it
I made new pull request mailchimp/mailchimp-client-lib-codegen#328 please vote for it
Tnx for the pull-request. The properties need to public, not protected. Protected throws an error.
I made new pull request mailchimp/mailchimp-client-lib-codegen#328 please vote for it
Tnx for the pull-request. The properties need to public, not protected. Protected throws an error.
show me error. in my project all good.
I made new pull request mailchimp/mailchimp-client-lib-codegen#328 please vote for it
Tnx for the pull-request. The properties need to public, not protected. Protected throws an error.
show me error. in my project all good.
class My_Class implements My_Interface {
public function my_method() {
$mailchimp = new MailchimpTransactional\ApiClient();
$mailchimp->setApiKey('YOUR_API_KEY');
$response = $mailchimp->users->ping();
}
}
This generates following error:
PHP Fatal error: Uncaught Error: Cannot access protected property MailchimpTransactional\ApiClient::$users
I made new pull request mailchimp/mailchimp-client-lib-codegen#328 please vote for it
Tnx for the pull-request. The properties need to public, not protected. Protected throws an error.
show me error. in my project all good.
class My_Class implements My_Interface { public function my_method() { $mailchimp = new MailchimpTransactional\ApiClient(); $mailchimp->setApiKey('YOUR_API_KEY'); $response = $mailchimp->users->ping(); } }This generates following error:
PHP Fatal error: Uncaught Error: Cannot access protected property MailchimpTransactional\ApiClient::$users
made in https://github.com/mailchimp/mailchimp-client-lib-codegen/pull/328
I've made my own fork with php8 support. I can't wait. For fix:
composer rm mailchimp/transactional
composer require otis22/transactional
Should be fixed according to https://github.com/mailchimp/mailchimp-transactional-php/pull/8#issuecomment-2049366041
Closing as this has been fix already see https://github.com/mailchimp/mailchimp-client-lib-codegen/pull/348
Please upgrade to the most recent version, thanks