Skip to content

Says string is mixed after checked and exception thrown #9647

@hopstad

Description

@hopstad

Bug report

In the following example phpstan says that $string still can still be mixed even though the code will stop at the exception.

Code snippet that reproduces the problem

https://phpstan.org/r/064b8829-7e11-425f-b437-0a7e3c7c9df9

Expected output

No errors should be given

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

Helping me every day to make better code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions