File tree 3 files changed +0
-23
lines changed
3 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,6 @@ public function withExpires($expires);
58
58
*/
59
59
public function withExpired ();
60
60
61
- /**
62
- * Creates a new Cookie that will virtually never expire from the browser.
63
- *
64
- * @return static
65
- *
66
- * @deprecated See https://github.com/codeigniter4/CodeIgniter4/pull/6413
67
- */
68
- public function withNeverExpiring ();
69
-
70
61
/**
71
62
* Creates a new Cookie with a new path on the server the cookie is available.
72
63
*
Original file line number Diff line number Diff line change @@ -465,18 +465,6 @@ public function withExpired()
465
465
return $ cookie ;
466
466
}
467
467
468
- /**
469
- * @deprecated See https://github.com/codeigniter4/CodeIgniter4/pull/6413
470
- */
471
- public function withNeverExpiring ()
472
- {
473
- $ cookie = clone $ this ;
474
-
475
- $ cookie ->expires = Time::now ()->getTimestamp () + 5 * YEAR ;
476
-
477
- return $ cookie ;
478
- }
479
-
480
468
/**
481
469
* {@inheritDoc}
482
470
*/
Original file line number Diff line number Diff line change @@ -235,7 +235,6 @@ public function testCloningCookies(): void
235
235
$ e = $ a ->withValue ('muffin ' );
236
236
$ f = $ a ->withExpires ('+30 days ' );
237
237
$ g = $ a ->withExpired ();
238
- $ h = $ a ->withNeverExpiring ();
239
238
$ i = $ a ->withDomain ('localhost ' );
240
239
$ j = $ a ->withPath ('/web ' );
241
240
$ k = $ a ->withSecure ();
@@ -248,7 +247,6 @@ public function testCloningCookies(): void
248
247
$ this ->assertNotSame ($ a , $ e );
249
248
$ this ->assertNotSame ($ a , $ f );
250
249
$ this ->assertNotSame ($ a , $ g );
251
- $ this ->assertNotSame ($ a , $ h );
252
250
$ this ->assertNotSame ($ a , $ i );
253
251
$ this ->assertNotSame ($ a , $ j );
254
252
$ this ->assertNotSame ($ a , $ k );
You can’t perform that action at this time.
0 commit comments