Skip to content

$this incorrectly detected inside object creation expression #2618

Description

@przepompownia

image

The case

        return new Success((function () {
            $classes = $this;
        })());

exists for example in lib/CodeTransform/Adapter/WorseReflection/Transformer/ImplementContracts.php.

It's a regression after #2469 @mamazu

Perhaps similar caution will be needed in #2613

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions