Skip to content

DocblockVarArrayFromPropertyDefaultsRector should not add types when they are already defined on parent #9779

@BackEndTea

Description

@BackEndTea

Bug Report

Subject Details
Rector version Rector 2.4.5

Minimal PHP Code Causing Issue

https://getrector.com/demo/bb986032-4313-4efd-9219-0df8144086b0

Expected Behaviour

Here the parent defines the types in its dockblocks already, so there is no need to define it again in the child class

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions