Browse Source

php specific methods should not be public

Nicolas Cannasse 12 years ago
parent
commit
c4442a5647
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/haxe/Json.hx

+ 2 - 2
std/haxe/Json.hx

@@ -421,7 +421,7 @@ class Json {
 	#end
 
 	#if php
-	public static function phpJsonDecode(json:String):Dynamic {
+	static function phpJsonDecode(json:String):Dynamic {
 		var val = untyped __call__("json_decode", json);
 		return convertAfterDecode(val);
 	}
@@ -440,7 +440,7 @@ class Json {
 			return val;
 	}
 
-	public static function phpJsonEncode(val:Dynamic):String {
+	static function phpJsonEncode(val:Dynamic):String {
 		var json = untyped __call__("json_encode", convertBeforeEncode(val));
 		if (untyped __physeq__(json, false))
 			return throw "invalid json";