Skip to content

AddOverrideAttributeToOverriddenMethodsRector #9621

@LinusTebbe

Description

@LinusTebbe

Bug Report

Subject Details
Rector version v2.3.4

Rector doesn't recognize traits used in parent classes
PHPStan does though which causes the PHPStan inspection to fail but Rector not being able to fix it

Minimal PHP Code Causing Issue

https://getrector.com/demo/decbf78f-9e96-40e4-b7f2-5e323b5df551
https://phpstan.org/r/55d93ed4-0232-476b-a07e-f2c43193d101

Expected Behaviour

I would expect rector to also add the Override attribute to the runSomething function of my example class

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions