Skip to content

NarrowObjectReturnTypeRector replaces interface with implementing concrete class #9525

Description

@WyriHaximus

Bug Report

Subject Details
Rector version e.g. v2.2.10 (invoke vendor/bin/rector --version)

Minimal PHP Code Causing Issue

https://getrector.com/demo/c43e917d-7f01-44c0-b43f-426f51ec938c

Expected Behaviour

No changes in the return type of Vhost\Healthz::handle. My expectation here was that Rector would respect the return type and anyone call that method should care about how I get to my return value, only that it implements that interface.

P.S. Not sure how much of this relates to #9489

Activity

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

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