Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Fatal error when calling Zend\Mvc\DispatchListener::marshalBadControllerEvent() with a PHP 7 Throwable #181

Closed
acelaya opened this issue Jul 3, 2016 · 2 comments

Comments

@acelaya
Copy link

acelaya commented Jul 3, 2016

The method Zend\Mvc\DispatchListener::marshalBadControllerEvent() has an \Exception type hint on its last argument, but it is also called when a \Throwable like an \Error instance is caught.
That produces this Fatal error.

Fatal error: Uncaught TypeError: Argument 4 passed to Zend\Mvc\DispatchListener::marshalBadControllerEvent() must be an instance of Exception, instance of Error given
@michalbundyra
Copy link
Member

Resolved in Release 3.0.2. Please run composer update and try again.

@acelaya
Copy link
Author

acelaya commented Jul 3, 2016

I see. Thanks :)

@acelaya acelaya closed this as completed Jul 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants