diff --git a/src/Umbraco.Web/Templates/TemplateRenderer.cs b/src/Umbraco.Web/Templates/TemplateRenderer.cs
index 4b9e9fa479..da5de1055c 100644
--- a/src/Umbraco.Web/Templates/TemplateRenderer.cs
+++ b/src/Umbraco.Web/Templates/TemplateRenderer.cs
@@ -181,7 +181,7 @@ namespace Umbraco.Web.Templates
///
/// Save all items that we know are used for rendering execution to variables so we can restore after rendering
///
- private void SaveExistingItems(out PublishedRequest oldPublishedRequest)
+ private void SaveExistingItems(out IPublishedRequest oldPublishedRequest)
{
//Many objects require that these legacy items are in the http context items... before we render this template we need to first
//save the values in them so that we can re-set them after we render so the rest of the execution works as per normal
@@ -191,7 +191,7 @@ namespace Umbraco.Web.Templates
///
/// Restores all items back to their context's to continue normal page rendering execution
///
- private void RestoreItems(PublishedRequest oldPublishedRequest)
+ private void RestoreItems(IPublishedRequest oldPublishedRequest)
{
_umbracoContextAccessor.UmbracoContext.PublishedRequest = oldPublishedRequest;
}