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

Getting error when stubbing Doctrine\ORM\Query\Filter\SQLFilter #318

Closed
aitboudad opened this issue Mar 14, 2014 · 2 comments
Closed

Getting error when stubbing Doctrine\ORM\Query\Filter\SQLFilter #318

aitboudad opened this issue Mar 14, 2014 · 2 comments

Comments

@aitboudad
Copy link

    function let(EntityManager $em, FilterCollection $filters, SQLFilter $filter)
    {
        $this->beConstructedWith($em);
        $filters->enable('status_filter')->willReturn($filter);
    }
PHP Fatal error:  Cannot override final method Doctrine\ORM\Query\Filter\SQLFilter::__construct() in /home/a-aitboudad/www/isobar/mixa/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php(48) : eval()'d code on line 2
@stof
Copy link
Member

stof commented Mar 14, 2014

Can you report it to Prophecy instead ?

@aitboudad
Copy link
Author

phpspec/prophecy#92

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

No branches or pull requests

2 participants