Skip to content

Commit af26d20

Browse files
committed
tweak: check if ViewModel is defined yet
1 parent 9a910f8 commit af26d20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Middleware/RequestHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected function completeRequestHandling(
130130

131131
$this->handleProtectedGlobals();
132132

133-
if(isset($this->viewModel) && instanceof HTMLDocument) {
133+
if(isset($this->viewModel) && $this->viewModel instanceof HTMLDocument) {
134134
$this->handleHTMLDocumentViewModel();
135135
// $this->handleCsrf($request);
136136
}

0 commit comments

Comments
 (0)