Răsfoiți Sursa

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

Simon Krajewski 12 ani în urmă
părinte
comite
e0df65391b
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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"));
 	}
 	}