Skip to content

extract with EXTR_SKIP should not override existing types #10436

@staabm

Description

@staabm

Bug report

when EXTR_SKIP is passed to extract we should not change types for variables we know exist

inspired by vimeo/psalm#7361

Code snippet that reproduces the problem

https://phpstan.org/r/03a0f64a-8ac5-446e-b502-a899219e5691

Expected output

2x same type dumped

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions