Skip to content

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

Closed

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.

Activity

  1. changed the title [-]PHPStan is saying expectThrowable wants _generated\Throwable instead of simply PHP's Throwable[/-] [+]PHPStan is saying expectThrowable wants Exception classes based on _generated\Throwable instead of simply PHP's Throwable[/+] on Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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