Skip to content

Commit 2a62571

Browse files
committed
minor symfony#13743 Update http_foundation.rst to replace withExpiresTime (Arioch171)
This PR was merged into the 5.1 branch. Discussion ---------- Update http_foundation.rst to replace withExpiresTime The method withExpiresTime does not exist in class https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/Cookie.php#L146. I think it should be withExpires instead. Commits ------- af77e76 Fix withExpiresTime replaced by withExpires
2 parents e7339e7 + af77e76 commit 2a62571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ a new object with the modified property::
451451

452452
$cookie = Cookie::create('foo')
453453
->withValue('bar')
454-
->withExpiresTime(strtotime('Fri, 20-May-2011 15:25:52 GMT'))
454+
->withExpires(strtotime('Fri, 20-May-2011 15:25:52 GMT'))
455455
->withDomain('.example.com')
456456
->withSecure(true);
457457

0 commit comments

Comments
 (0)