Procházet zdrojové kódy

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

Simon Krajewski před 12 roky
rodič
revize
e0df65391b
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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"));
 	}