Skip to content

Commit b1a8fbc

Browse files
committed
assert
1 parent dcb2342 commit b1a8fbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/HeroTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public function execOnShutdown() : void
7979

8080
// ZF Mvc project
8181
if ($this instanceof Listener\Mvc) {
82+
Assert::isInstanceOf($this->mvcEvent, MvcEvent::class);
83+
8284
ob_start();
8385
$this->mvcEvent->setParam('exception', $errorException);
8486
$this->exceptionError($this->mvcEvent);

0 commit comments

Comments
 (0)