Skip to content

Conversation

escopecz
Copy link
Member

@escopecz escopecz commented Sep 5, 2024

Q A
Bug fix? (use the a.b branch) 🟢
New feature/enhancement? (use the a.x branch) 🔴
Deprecations? 🔴
BC breaks? (use the c.x branch) 🔴
Automated tests included? 🟢 PHPSTAN
Related user documentation PR URL mautic/user-documentation#...
Related developer documentation PR URL mautic/developer-documentation-new#...
Issue(s) addressed Fixes #...

Description

While working on #13962 I wanted to run Rector with rules for Symfony 6. We still have a config for that where I could just increase the Symfony version. However, the command

bin/rector --config=rector-older-symfony.php

returned a lot of changes also for Symfony 5.4. This PR is adding those changes now so the Symfony 6 PR would get smaller and the current Mautic 5 code neater (too late, M5 is in the bug fix release only).


📋 Steps to test this PR:

Most of the changes were done in the test files. I've added all the changes to the production files into this commit. From those changes we can for example test:

  1. Clone an email and click on Save&Close button.
  2. The command changes are really straight forward. Run bin/console mautic:fields:analyse just to test one.

@escopecz escopecz requested a review from mabumusa1 as a code owner September 5, 2024 15:16
@escopecz escopecz added bug Issues or PR's relating to bugs ready-to-test PR's that are ready to test code-review-needed PR's that require a code review before merging refactoring The change does not change behavior but improves the code labels Sep 5, 2024
@escopecz escopecz marked this pull request as draft September 6, 2024 09:17
@escopecz escopecz added WIP PR's that are not ready for review and are currently in progress and removed ready-to-test PR's that are ready to test code-review-needed PR's that require a code review before merging labels Sep 6, 2024
@escopecz escopecz changed the base branch from 5.x to 6.x December 3, 2024 09:11
@escopecz escopecz added this to the 6.0 milestone Dec 3, 2024
@escopecz escopecz marked this pull request as ready for review December 3, 2024 09:24
@escopecz escopecz added ready-to-test PR's that are ready to test code-review-needed PR's that require a code review before merging and removed WIP PR's that are not ready for review and are currently in progress labels Dec 3, 2024
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 63.28%. Comparing base (c7a3d7c) to head (5b20f1e).
Report is 1 commits behind head on 6.x.

Files with missing lines Patch % Lines
...bundles/EmailBundle/Controller/EmailController.php 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                6.x   #14094      +/-   ##
============================================
- Coverage     63.28%   63.28%   -0.01%     
+ Complexity    34611    34610       -1     
============================================
  Files          2271     2271              
  Lines        103547   103539       -8     
============================================
- Hits          65527    65520       -7     
+ Misses        38020    38019       -1     
Files with missing lines Coverage Δ
...nBundle/Command/CampaignDeleteEventLogsCommand.php 100.00% <100.00%> (ø)
.../bundles/CoreBundle/Command/AnonymizeIpCommand.php 87.50% <100.00%> (-0.74%) ⬇️
app/bundles/EmailBundle/Entity/Stat.php 93.13% <ø> (ø)
...dles/IntegrationsBundle/Command/CleanupCommand.php 100.00% <100.00%> (ø)
...Bundle/Field/Command/AnalyseCustomFieldCommand.php 100.00% <100.00%> (ø)
...dBundle/Field/Command/UpdateCustomFieldCommand.php 33.33% <ø> (-2.67%) ⬇️
app/bundles/LeadBundle/Form/Type/HtmlType.php 100.00% <ø> (ø)
...bundles/EmailBundle/Controller/EmailController.php 64.45% <50.00%> (+0.09%) ⬆️

@escopecz escopecz merged commit d1c1022 into mautic:6.x Dec 3, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs code-review-needed PR's that require a code review before merging ready-to-test PR's that are ready to test refactoring The change does not change behavior but improves the code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants