diff --git a/src/Helper/Layout.php b/src/Helper/Layout.php index 982913e5a..87121288a 100644 --- a/src/Helper/Layout.php +++ b/src/Helper/Layout.php @@ -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; }