Skip to content

Commit

Permalink
Removes a territorial assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeven committed Aug 17, 2022
1 parent ae32391 commit cfff710
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Helper/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ protected function getViewModelHelper()
/**
* @psalm-suppress DeprecatedMethod
*/
$renderer = $this->getView();
assert($renderer instanceof PhpRenderer);
$helper = $renderer->plugin('view_model');
$helper = $this->getView()->plugin('view_model');
assert($helper instanceof ViewModel);
$this->viewModelHelper = $helper;
}
Expand Down

0 comments on commit cfff710

Please sign in to comment.