Skip to content

False positive - code above always terminates. after void method call #2877

@pepakriz

Description

@pepakriz

Bug report

After v0.12.6 upgrade (from v 0.12.5), I got one false-positive report about code above always terminates.. See below. This strange behavior occurs when void method is called during the method.

Code snippet that reproduces the problem

https://phpstan.org/r/6c7fd26c-3525-4799-a78f-13f1d2ade037

Expected output

no error at all

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