Jelajahi Sumber

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

Simon Krajewski 12 tahun lalu
induk
melakukan
e0df65391b
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  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.
 		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 h = new haxe.ds.StringMap<String>();
 		var k = "";

+ 1 - 1
std/php/Web.hx

@@ -252,7 +252,7 @@ class Web {
 		Returns an hashtable of all Cookies sent by the client.
 		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"));
 	}