Browse Source

added explicit return type for Web.getCookies (fixed issue #1696)

Simon Krajewski 12 years ago
parent
commit
e0df65391b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      std/neko/Web.hx
  2. 1 1
      std/php/Web.hx

+ 1 - 1
std/neko/Web.hx

@@ -164,7 +164,7 @@ class Web {
 		Returns an hashtable of all Cookies sent by the client.
 		Returns an hashtable of all Cookies sent by the client.
 		Modifying the hashtable will not modify the cookie, use setCookie instead.
 		Modifying the hashtable will not modify the cookie, use setCookie instead.
 	**/
 	**/
-	public static function getCookies() {
+	public static function getCookies():haxe.ds.StringMap<String> {
 		var p = _get_cookies();
 		var p = _get_cookies();
 		var h = new haxe.ds.StringMap<String>();
 		var h = new haxe.ds.StringMap<String>();
 		var k = "";
 		var k = "";

+ 1 - 1
std/php/Web.hx

@@ -252,7 +252,7 @@ class Web {
 		Returns an hashtable of all Cookies sent by the client.
 		Returns an hashtable of all Cookies sent by the client.
 		Modifying the hashtable will not modify the cookie, use setCookie instead.
 		Modifying the hashtable will not modify the cookie, use setCookie instead.
 	**/
 	**/
-	public static function getCookies() {
+	public static function getCookies():haxe.ds.StringMap<String> {
 		return Lib.hashOfAssociativeArray(untyped __php__("$_COOKIE"));
 		return Lib.hashOfAssociativeArray(untyped __php__("$_COOKIE"));
 	}
 	}