🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

mixed type is breaking conditional analysis type narrowing #7948

Description

@mvorisek

Bug report

Analysis must be consistent, variable type before replacement must not be decisive.

Code snippet that reproduces the problem

https://phpstan.org/r/a323a83a-107e-401a-bd61-6c696d29dccb

Expected output

 Line | Error
 -- | --
-16 | Dumped type: mixed
+16 | Dumped type: null
 31 | Dumped type: null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions