Skip to content

Commit

Permalink
Remove unrequired method check (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb authored Feb 6, 2024
1 parent 1008a36 commit 6b0d0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function _prepareHandler(Context $c, $handler)
if(method_exists($this, $attemptMethod))
{
$di = $this->_cubex();
if($di instanceof DependencyInjector && method_exists($di, 'resolveMethod'))
if($di instanceof DependencyInjector)
{
return fn(Context $c) => $di->resolveMethod($this, $attemptMethod);
}
Expand Down

0 comments on commit 6b0d0b9

Please sign in to comment.