-
Notifications
You must be signed in to change notification settings - Fork 89
marshalBadControllerEvent argument type hinting #161
Conversation
Exception -> Throwable At line 102 marshalBadControllerEvent used with Throwable argument type
@@ -216,7 +216,7 @@ protected function marshalBadControllerEvent( | |||
$controllerName, | |||
MvcEvent $event, | |||
Application $application, | |||
\Exception $exception | |||
\Throwable $exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not gonna work on php 5.6 :(
please have a look in composer.json
, and it still must work on: "php": "^5.6 || ^7.0"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@webimpress It works fine on PHP 5.6; the class does not need to exist for a typehint check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed that this was in the method signature and not the docblock. I'll remove the typehint during merge.
it was already resolved in release 2.7.9: should be also ported to release v3 /cc @weierophinney |
Thanks @autowp ! |
marshalBadControllerEvent argument type hinting
Exception -> Throwable
At line 102 marshalBadControllerEvent used with Throwable argument type