Skip to content

bug: rename does not work inside nested closure #143

@calebdw

Description

@calebdw

PHPantom version

c733048

Installation method

Built from source

Operating system

Linux x86_64

Editor

Neovim

Bug description

Trying to rename $abstract in the function definition does not rename the inner $abstract

function foo(?bool $abstract = false)
{
        fn () => fn () => $abstract;
}

Steps to reproduce

see above

Error output or panic trace


.phpantom.toml

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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