Skip to content

Commit a185e53

Browse files
committed
Fix some docblocks.
1 parent f9722a8 commit a185e53

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Cookie.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ public static function fromString($cookie, $url = null)
190190
);
191191
}
192192

193+
/**
194+
* @param string $dateValue
195+
*
196+
* @return string|null
197+
*/
193198
private static function parseDate($dateValue)
194199
{
195200
// trim single quotes around date if present
@@ -207,6 +212,8 @@ private static function parseDate($dateValue)
207212
if (false !== $date = date_create($dateValue, new \DateTimeZone('GMT'))) {
208213
return $date->format('U');
209214
}
215+
216+
return null;
210217
}
211218

212219
/**

CookieJar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ public function clear()
111111
/**
112112
* Updates the cookie jar from a response Set-Cookie headers.
113113
*
114-
* @param array $setCookies Set-Cookie headers from an HTTP response
115-
* @param string $uri The base URL
114+
* @param string[] $setCookies Set-Cookie headers from an HTTP response
115+
* @param string $uri The base URL
116116
*/
117117
public function updateFromSetCookie(array $setCookies, $uri = null)
118118
{

0 commit comments

Comments
 (0)