mirror of
https://github.com/guzzle/guzzle.git
synced 2025-03-14 19:29:49 +01:00
forgot $this
This commit is contained in:
parent
6aceeb7304
commit
c03cda8b3e
@ -49,7 +49,7 @@ class FileCookieJar extends CookieJar
|
||||
$json = [];
|
||||
foreach ($this as $cookie) {
|
||||
/** @var SetCookie $cookie */
|
||||
if($cookie->getExpires() || $storeSessionCookies){
|
||||
if($cookie->getExpires() || $this->storeSessionCookies){
|
||||
if (!$cookie->getDiscard()) {
|
||||
$json[] = $cookie->toArray();
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ class SessionCookieJar extends CookieJar
|
||||
$json = [];
|
||||
foreach ($this as $cookie) {
|
||||
/** @var SetCookie $cookie */
|
||||
if($cookie->getExpires() || $storeSessionCookies){
|
||||
if($cookie->getExpires() || $this->storeSessionCookies){
|
||||
if (!$cookie->getDiscard()) {
|
||||
$json[] = $cookie->toArray();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user