Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Aug 21, 2025

see reasoning:

#510 (review)

the assertSame match to exact type, not loosy type, so when user use assertSame, it error on the first. That if combined to AssertEqualsToSameRector, it because changed to assertSame which cause error.

-'1'
+'00000000000000000001'

…EqualsExpectedTypeRector to only apply on assertEquals
@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 84fe73a into main Aug 21, 2025
6 checks passed
@samsonasik samsonasik deleted the rename-to-assert-equals branch August 21, 2025 02:40
@TomasVotruba
Copy link
Member

This is on purpose. The rule should handle assertSame(), please revert.

samsonasik added a commit that referenced this pull request Aug 21, 2025
…chAssertEqualsExpectedTypeRector to only apply on assertEquals (#514)"

This reverts commit 84fe73a.
@samsonasik
Copy link
Member Author

on process:

I will add test to prove invalid apply

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.

3 participants