We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1a8fbc commit c67dd3eCopy full SHA for c67dd3e
src/HeroTrait.php
@@ -26,11 +26,9 @@ trait HeroTrait
26
27
public function phpError() : void
28
{
29
- if ($this instanceof Listener\Mvc && \func_get_args()) {
30
- Assert::isInstanceOf(
31
- $this->mvcEvent = \func_get_arg(0),
32
- MvcEvent::class
33
- );
+ if ($this instanceof Listener\Mvc) {
+ Assert::count($args = \func_get_args(), 1);
+ Assert::isInstanceOf($this->mvcEvent = $args[0], MvcEvent::class);
34
}
35
36
if (! $this->errorHeroModuleConfig['display-settings']['display_errors']) {
0 commit comments