Skip to content

Commit af0e02c

Browse files
committed
minor symfony#14681 [FrameworkBundle] Removed unnecessary parameter in TemplateController (King2500)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes symfony#14681). Discussion ---------- [FrameworkBundle] Removed unnecessary parameter in TemplateController | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | They should | License | MIT `Response::setPublic()` doesn't have any parameters, so this parameter call is not needed. Commits ------- 7a4394e [FrameworkBundle] Removed unnecessary parameter in TemplateController
2 parents 4d40852 + 7a4394e commit af0e02c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Controller/TemplateController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function templateAction($template, $maxAge = null, $sharedAge = null, $pr
4747
if ($private) {
4848
$response->setPrivate();
4949
} elseif ($private === false || (null === $private && ($maxAge || $sharedAge))) {
50-
$response->setPublic($private);
50+
$response->setPublic();
5151
}
5252

5353
return $response;

0 commit comments

Comments
 (0)