-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Tighten types that were reported by phpstan. #13110
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
Conversation
6af12a5
to
b765d9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is improving the code, but the plan was to release M5.0.0 stable next week. If we'd merge this then we'd need to release new release candidate version as it contains BC breaks. What would you suggest to do here?
@escopecz As I see, it's baked on the 5.1 branch, so I assume we can go to 5.1. |
Breaking changes can go to 6.x from now on. If someone wants to maintain that branch for a year or so, we can create it now. |
I changed the target branch from 5.1 to 5.x as we are getting back to our classic branching strategy where 5.x will be for features and 5.0 for bug fixes. There is a conflict. Please resolve it. |
e78afba
to
c93d3cd
Compare
@biozshock can you either regenerate the baseline or add comment ignores to the code with the explanations why is the line ignored or add the ignores to phpstan configs so we could merge this? I'm fine with either of those. |
@escopecz What is better or common in Mautic? I can do both of the solutions to get phpstan errors out of the way. |
plugins/MauticSocialBundle/Command/MauticSocialMonitoringCommand.php
Outdated
Show resolved
Hide resolved
53ea0bd
to
ecc5237
Compare
0eac6ac
to
7584ccc
Compare
app/bundles/CampaignBundle/Tests/Controller/CampaignControllerFunctionalTest.php
Outdated
Show resolved
Hide resolved
app/bundles/PageBundle/Tests/Controller/PublicControllerTest.php
Outdated
Show resolved
Hide resolved
7584ccc
to
e7659ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This is really great work. It reduces the tech debt in the baseline file by ~10%. 🎉
e7659ee
to
0ccf582
Compare
@biozshock could you please rebase on 6.x branch and let's get merge it there. |
707478f
to
d7884da
Compare
@escopecz done. You probably need to merge the PR, as this is heading to a year long one :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Description:
Tightened types and fixed phpstan errors.
There are still some PHPStan errors revealed by the type tightening or method overrides. Best solution as for me is to generate new baseline.
Steps to test this PR:
As there are lots of places changed, please test as much as you can.