-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feature: LongToShorthandOperatorFixer - Introduction #6385
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
feature: LongToShorthandOperatorFixer - Introduction #6385
Conversation
the SCA reporting seems broken, also locally it yield different results |
c8d851b
to
10d4c9a
Compare
5e83e38
to
224a7be
Compare
rebased on latest and resolved conflict, no other changes |
224a7be
to
9751f4c
Compare
rebased, no other changes |
fix prio value after rebase |
90383b9
to
11d039c
Compare
rebased on lastest without other changes |
Can you pls check PHPStan errors for this PR? |
5163c04
to
96b55cc
Compare
thanks, all green now |
use PhpCsFixer\Tokenizer\Tokens; | ||
|
||
final class AssignNullCoalescingToCoalesceEqualFixer extends AbstractFixer | ||
final class AssignNullCoalescingToCoalesceEqualFixer extends AbstractShortOperatorFixer |
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.
Instead of using an abstract class, I would suggest deprecating this fixer and moving its logic to LongToShorthandOperatorFixer
.
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.
Can we do this in a follow up PR? It will require making the new LongToShorthandOperatorFixer
configurable so it can be used to only behave as the current AssignNullCoalescingToCoalesceEqualFixer
.
96b55cc
to
a73689f
Compare
rebase on latest without changes |
This is becoming a bit of a pain, can we not disable the check? |
and can we run all SCA even if the first tool fails? |
b1896e5
to
95e0c68
Compare
rebased on latest, no other changes |
95e0c68
to
831e815
Compare
rebase on latest without changes |
831e815
to
80e127c
Compare
closes #3515