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 committed 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([]));

Check warning on line 36 in app/sprinkles/account/src/Error/Handler/AuthCompromisedExceptionHandler.php

View check run for this annotation

Codecov / codecov/patch

app/sprinkles/account/src/Error/Handler/AuthCompromisedExceptionHandler.php#L36

Added line #L36 was not covered by tests
}
}

0 comments on commit a487dfe

Please sign in to comment.