Skip to content

Commit

Permalink
Fix missing render contex targ
Browse files Browse the repository at this point in the history
The context param is a mandatory arg to render(). Causes PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Twig\Template::render(), 0 passed in ... if omitted.
  • Loading branch information
phillmac authored Sep 13, 2023
1 parent adb574f commit a487dfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public function renderGenericResponse()
return $this->response
->withStatus($this->statusCode)
->withHeader('Content-type', $this->contentType)
->write($template->render());
->write($template->render([]));
}
}

0 comments on commit a487dfe

Please sign in to comment.