Skip to content

PrivatizeFinalClassMethodRector - protected constructor #9020

@jorgsowa

Description

@jorgsowa

Bug Report

Subject Details
Rector version 2.0.9

Minimal PHP Code Causing Issue

https://getrector.com/demo/b2e156d1-5d20-465f-9b0b-90183ff3057f

Expected Behaviour

The rector shouldn't change anything because the modified code throws an error.

PHP Fatal error: Uncaught Error: Call to private B::__construct() from scope A in

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