From 94b20949fa6d43236d337b0995a05db3d440318b Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sun, 5 Apr 2020 14:40:46 +0200 Subject: [PATCH] Add lang.FormatException to imports --- src/main/php/unittest/web/Cookie.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/php/unittest/web/Cookie.class.php b/src/main/php/unittest/web/Cookie.class.php index 42fa461..986392f 100755 --- a/src/main/php/unittest/web/Cookie.class.php +++ b/src/main/php/unittest/web/Cookie.class.php @@ -1,5 +1,7 @@ attributes= $attributes; } + /** + * Parse a cookie from a header value + * + * @param string $header + * @return self + * @throws lang.FormatException + */ public static function parse($header) { sscanf($header, '%[^=]=%[^;]', $name, $value); if (false === ($offset= strpos($header, ';'))) {