Skip to content

Not checking for exceptions thrown via assert #5650

@patrickkusebauch

Description

@patrickkusebauch

Bug report

PhpStan does not consider "custom" exceptions thrown via assert

Code snippet that reproduces the problem

Not possible on PHPStan playground, but repo here: https://github.com/patrickkusebauch/phpstan-assert-exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions