Skip to content

InitializeDefaultEntityCollectionRector suggests \RectorPrefix20210215\Doctrine\Common\Collections\ArrayCollection #5596

@ruudk

Description

@ruudk

Bug Report

Subject Details
Rector version 0.9.29
Installed as prefixed Rector

It suggests this code:

    ---------- begin diff ----------
--- Original
+++ New
@@ @@

     public function __construct(string $journeyId, string $ticketProviderId)
     {
+        $this->validation = new \RectorPrefix20210215\Doctrine\Common\Collections\ArrayCollection();
    ----------- end diff -----------

I think this is caused by

$new = new New_(new FullyQualified(ArrayCollection::class));

Maybe it shouldn't reference the imported ArrayCollection::class but use just a FQCN string?

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