Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Aug 21, 2025

@TomasVotruba after test extensively on our project, this rule is cause more error than good, because it conflict with AssertEqualsToSameRector which assertEquals than marked as assertSame, and cause invalid result.

-'1'
+'00000000000000000001'

so I remove this rule :)

Ref for history of reasoning:

@samsonasik samsonasik merged commit a5fc689 into main Aug 21, 2025
6 checks passed
@samsonasik samsonasik deleted the drop-match-assert branch August 21, 2025 05:10
samsonasik added a commit that referenced this pull request Aug 21, 2025
TomasVotruba pushed a commit that referenced this pull request Aug 21, 2025
* Revert "Drop MatchAssertEqualsExpectedTypeRector (#517)"

This reverts commit a5fc689.

* Revert "[CodeQuality] Rename MatchAssertSameExpectedTypeRector to MatchAssertEqualsExpectedTypeRector to only apply on assertEquals (#514)"

This reverts commit 84fe73a.

* add test

* [ci-review] Rector Rectify

---------

Co-authored-by: GitHub Action <actions@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants