Open
Conversation
Didn't do anything in /spec and /tests. PHP min. version set to 8.1. Symfony min. version set to 6.3. Todo: check if lower version (6.1?) is working. Controller is extending from AbstractController instead of Controller. Removed some deprecations. Added some code formatting (PSR). Commands: added returns (Command::SUCCESS). Micro-optimization: changed array_push($foo, $bar) to $foo[] = $bar (faster here). Changed type comparison operators (!= -> !==). Added function's return types. Added property types. SubscriberEvent and WebhookEvent: removed Symfony\Component\EventDispatcher\Event class (removed in Symfony 4?) routing.yaml: changed "type: annotation" to "type: attributes". A lot of small changes related to language level / Symfony version upgrade.
AbstractBundle instead of Bundle.
…\Component\Routing\Attribute\Route; Renamed files to match Symfony conventions. Remove not needed addAnnotatedClassesToCompile() call.
|
Bump |
Remove default value from $status parameter to resolve PHP 8.0+ deprecation warning about optional parameters declared before required parameters..
Fix deprecated optional parameter before required
Sometimes Mailchimp returns null body.
Fix json_decode to handle null body response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
the bundle wasn't working for me with Symfony 6 and PHP 8.2, so I made the fork. I think it could be connected to #31
What is done:
Symfony\Bundle\FrameworkBundle\Controller\AbstractControllerinstead ofSymfony\Bundle\FrameworkBundle\Controller\AbstractController\Controller(not available in Symfony 6).Command::SUCCESS).!=->!==).SubscriberEventandWebhookEvent: removedSymfony\Component\EventDispatcher\Eventclass (removed in Symfony 4?)type: annotationtotype: attributes.Symfony\Component\HttpKernel\Bundle\AbstractBundleinstead ofSymfony\Component\HttpKernel\Bundle\Bundle.TODO:
yieldcould be helpful.If you decide to merge, I thing it should be major release (a'la mentioned above 2.0), there are BC changes here.
Anyway it works perfect with my app syncing ~4000 users with Mailchimp.