Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocking an Throwable interface produces an error #832

Open
jubianchi opened this issue Sep 20, 2019 · 1 comment
Open

Mocking an Throwable interface produces an error #832

jubianchi opened this issue Sep 20, 2019 · 1 comment
Labels

Comments

@jubianchi
Copy link
Member

Given we have:

<?php

interface MyThrowable extends Throwable {
    //...
}

If we try to mock this interface, it results in an error:

Class MyThrowable cannot implement interface Throwable, extend Exception or Error instead
@Grummfy Grummfy added the bug label Oct 3, 2019
@Grummfy
Copy link
Member

Grummfy commented Oct 3, 2020

probably solved in version 4.0.0 with the change made on #843

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants