Skip to content

Commit 5f0b22a

Browse files
Merge branch '3.4' into 4.3
* 3.4: [Routing] Add a param annotation for $annot. [DI] fix docblock Add missing translations for Armenian locale [Process] Doc block backport. Fix some docblocks.
2 parents 5cf26e9 + a185e53 commit 5f0b22a

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
@@ -199,6 +199,11 @@ public static function fromString($cookie, $url = null)
199199
);
200200
}
201201

202+
/**
203+
* @param string $dateValue
204+
*
205+
* @return string|null
206+
*/
202207
private static function parseDate($dateValue)
203208
{
204209
// trim single quotes around date if present
@@ -216,6 +221,8 @@ private static function parseDate($dateValue)
216221
if (false !== $date = date_create($dateValue, new \DateTimeZone('GMT'))) {
217222
return $date->format('U');
218223
}
224+
225+
return null;
219226
}
220227

221228
/**

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)