Skip to content

Incorrect behavior of UseIdenticalOverEqualWithSameTypeRector #9609

Description

@Payn

Bug Report

Subject Details
Rector version 2.3.2

Using PHPDoc annotations breaks this rule

Minimal PHP Code Causing Issue

https://getrector.com/demo/2dc5752b-4279-4a2e-a3d4-0bfe5a069fa4

Expected Behaviour

"==" should be replaced with "===" but it's not.
When you remove the annotations it works as expected (see https://getrector.com/demo/094eb16e-8cb1-4a94-84f0-62fd0214554b)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions