Explorar o código

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

Simon Krajewski %!s(int64=12) %!d(string=hai) anos
pai
achega
e0df65391b
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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"));
 	}