Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.
This repository was archived by the owner on May 4, 2019. It is now read-only.

Foreach loop #4

@zeraphie

Description

@zeraphie

Hey,

Awesome plugin, almost on the same level as phpstorm's refactoring :)

When there is a foreach loop in a function, it tries to add the $value as a parameter (as below) which shouldn't be happening

Original

foreach($array as $key => $value){
    var_dump($key, $value);
}

Result

public function ($value){
    foreach($array as $key => $value){
        var_dump($key, $value);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions