From cfff7100ed939f3a87caaa6463a5f4244d93ad00 Mon Sep 17 00:00:00 2001 From: Alexandre Lemaire Date: Wed, 17 Aug 2022 15:42:05 -0400 Subject: [PATCH] Removes a territorial assertion. --- src/Helper/Layout.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }