Skip to content

Child non-readonly class doesnt refactor it into readonly when the parent was readonly class #7665

@kevariable

Description

@kevariable

Bug Report

Subject Details
Rector version v0.15.0
PHP Version v8.2

i had issue when i extends the readonly class which child class doesnt have readonly

readonly abstract class Action
{
}

child

class Something extends Action
{
}

Expected Behaviour

i expect this is will automatically add the readonly when the parent was readonly

readonly abstract class Action
{
}

child

readonly class Something extends Action
{
}

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