Skip to content

Rector adds the same return type hint three times (array&array&array) #7488

@Aerendir

Description

@Aerendir

Bug Report

Subject Details
Rector version v0.14.2

Rector adds the same return type hint three times:

1) src/DependencyInjection/Configuration.php:251

    ---------- begin diff ----------
@@ @@
         ***
     ***

-    private function processTree(array $tree): array
+    private function processTree(array $tree): array&array&array
     ***
         // Process oauth
         foreach ($tree[self::OAUTH] as $consumer => $oAuth) ***
    ----------- end diff -----------

Applied rules:
 * ArgumentRemoverRector
 * RenamePropertyRector
 * WrapReturnRector
 * StaticCallToNewRector (https://github.com/symfony/symfony/pull/35[30](https://github.com/SerendipityHQ/bundle-remotes/actions/runs/3073794470/jobs/4966149289#step:6:31)8)
 * ReturnTypeDeclarationRector (https://wiki.php.net/rfc/scalar_type_hints_v5)

Minimal PHP Code Causing Issue

Impossible to reproduce in the demo.

https://github.com/SerendipityHQ/bundle-remotes/actions/runs/3073794470/jobs/4966149289#step:6:24

Expected Behaviour

The code is not changed.

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