Skip to content

Commit 00310be

Browse files
committed
minor symfony#9546 Fix typo in method setETag. Correct method name is setEtag (Artem Henvald)
This PR was merged into the 2.7 branch. Discussion ---------- Fix typo in method setETag. Correct method name is setEtag Just small typo fixed. I have copy pasted code from docs and then my code sniffer notified about mismatched method name. Here is a link to API https://api.symfony.com/4.0/Symfony/Component/HttpFoundation/Response.html#method_setEtag Commits ------- 6a2a877 Fix typo in method setETag. Correct method name is setEtag
2 parents 6f3e0c4 + 6a2a877 commit 00310be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_cache/validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ exposing a simple and efficient pattern::
200200

201201
// create a Response with an ETag and/or a Last-Modified header
202202
$response = new Response();
203-
$response->setETag($article->computeETag());
203+
$response->setEtag($article->computeETag());
204204
$response->setLastModified($article->getPublishedAt());
205205

206206
// Set response as public. Otherwise it will be private by default.

0 commit comments

Comments
 (0)