Skip to content

PHPStan is saying expectThrowable wants Exception classes based on _generated\Throwable instead of simply PHP's Throwable #18

Closed
@Rockylars

Description

@Rockylars

Hey there, this is in relation to #13. This may be similar to #9 which is from our prior colleague.
image

I would expect that expectThrowable would simply accept Throwable. It is impossible for us to make copies of every error class just so that it works with this weird new Throwable. If i look at your code, i can see that you're also expecting the PHP one. Something may just have gone wrong by using the use statement instead of the backslash.

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