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

[type-declarations] Add ctor based property types in - Lead bundles #12952

Merged
merged 1 commit into from Dec 4, 2023

Conversation

TomasVotruba
Copy link
Contributor

No description provided.

@TomasVotruba TomasVotruba force-pushed the tv-ctor-properties-lead-bundle branch 2 times, most recently from bc05a13 to f92d733 Compare November 30, 2023 00:45
@TomasVotruba TomasVotruba marked this pull request as draft November 30, 2023 01:09
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Merging #12952 (69f2562) into 5.x (23ded7c) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                5.x   #12952      +/-   ##
============================================
- Coverage     58.86%   58.86%   -0.01%     
  Complexity    33578    33578              
============================================
  Files          2181     2181              
  Lines        101759   101759              
============================================
- Hits          59899    59897       -2     
- Misses        41860    41862       +2     
Files Coverage Δ
...bundles/LeadBundle/Controller/ImportController.php 61.31% <ø> (ø)
.../bundles/LeadBundle/Deduplicate/CompanyDeduper.php 100.00% <ø> (ø)
...p/bundles/LeadBundle/Deduplicate/ContactMerger.php 100.00% <ø> (ø)
...p/bundles/LeadBundle/Event/CategoryChangeEvent.php 0.00% <ø> (ø)
...les/LeadBundle/Event/ChannelSubscriptionChange.php 100.00% <ø> (ø)
...es/LeadBundle/Event/ContactIdentificationEvent.php 100.00% <ø> (ø)
.../bundles/LeadBundle/Event/DoNotContactAddEvent.php 100.00% <ø> (ø)
...ndles/LeadBundle/Event/DoNotContactRemoveEvent.php 0.00% <ø> (ø)
.../bundles/LeadBundle/Event/LeadBuildSearchEvent.php 61.36% <ø> (ø)
...undles/LeadBundle/Event/LeadChangeCompanyEvent.php 81.25% <ø> (ø)
... and 138 more

... and 1 file with indirect coverage changes

@TomasVotruba TomasVotruba marked this pull request as ready for review November 30, 2023 08:09
@TomasVotruba TomasVotruba force-pushed the tv-ctor-properties-lead-bundle branch 2 times, most recently from 2dc9e2b to 9f41d54 Compare November 30, 2023 15:05
@TomasVotruba TomasVotruba marked this pull request as draft November 30, 2023 15:27
@TomasVotruba TomasVotruba changed the title [type-declarations] Add ctor based types in lead bundle [WIP] [type-declarations] Add ctor based types in lead bundle Nov 30, 2023
@TomasVotruba
Copy link
Contributor Author

Let's wait for other PRs to get merge first, as this will be a bigger rebase.

@TomasVotruba TomasVotruba changed the title [WIP] [type-declarations] Add ctor based types in lead bundle [type-declarations] Add ctor based types in lead bundle Dec 2, 2023
@TomasVotruba TomasVotruba marked this pull request as ready for review December 2, 2023 13:53
@TomasVotruba
Copy link
Contributor Author

Ready to go ✔️

@TomasVotruba TomasVotruba changed the title [type-declarations] Add ctor based types in lead bundle [type-declarations] Add ctor based property types in - Lead bundles Dec 2, 2023
Copy link
Sponsor Member

@escopecz escopecz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any issues with these changes. 👍

@TomasVotruba I started to think that since Mautic 5 supports only PHP 8+, we could switch directly to constructor property promotion instead of defining properties on the class level, right? Isn't this a change that is already outdated?

@TomasVotruba
Copy link
Contributor Author

@escopecz PHP 8.0 is great target 👍

I plan to add property promotion PRs after those typed property PRs are merged. It's more safe to do it step by step 🙏

@escopecz escopecz added this to the 5.0-General Availability milestone Dec 4, 2023
@escopecz escopecz added bug Issues or PR's relating to bugs refactoring The change does not change behavior but improves the code labels Dec 4, 2023
@escopecz escopecz merged commit 77c0117 into mautic:5.x Dec 4, 2023
12 of 14 checks passed
@TomasVotruba TomasVotruba deleted the tv-ctor-properties-lead-bundle branch December 4, 2023 16:13
@TomasVotruba
Copy link
Contributor Author

Thank you 👍

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 refactoring The change does not change behavior but improves the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants