Skip to content

Commit fa3a14f

Browse files
committed
rename method to expire
1 parent 62c8fc0 commit fa3a14f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Illuminate/Cookie/CookieJar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function queue(...$parameters)
161161
* @param string|null $domain
162162
* @return void
163163
*/
164-
public function queueForget($name, $path = null, $domain = null)
164+
public function expire($name, $path = null, $domain = null)
165165
{
166166
$this->queue($this->forget($name, $path, $domain));
167167
}

tests/Cookie/CookieTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ public function testHasQueuedWithPath(): void
118118
$this->assertFalse($cookieJar->hasQueued('foo', '/wrongPath'));
119119
}
120120

121-
public function testQueueForget()
121+
public function testExpire()
122122
{
123123
$cookieJar = $this->getCreator();
124124
$this->assertCount(0, $cookieJar->getQueuedCookies());
125125

126-
$cookieJar->queueForget('foobar', '/path', '/domain');
126+
$cookieJar->expire('foobar', '/path', '/domain');
127127

128128
$cookie = $cookieJar->queued('foobar');
129129
$this->assertEquals('foobar', $cookie->getName());

0 commit comments

Comments
 (0)