Alexander Kuzmenko %!s(int64=8) %!d(string=hai) anos
pai
achega
7751a85a95
Modificáronse 2 ficheiros con 8 adicións e 1 borrados
  1. 0 1
      std/php/_std/Reflect.hx
  2. 8 0
      tests/unit/src/unit/issues/Issue6559.hx

+ 0 - 1
std/php/_std/Reflect.hx

@@ -34,7 +34,6 @@
 	}
 
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic {
-		#if php untyped __call__('var_dump', field); #end
 		if (null == o) return null;
 		var cls : String = Std.is(o, Class) ? untyped __php__("$o->__tname__") : untyped __call__("get_class", o);
 		var cls_vars : php.NativeArray = untyped __call__("get_class_vars", cls);

+ 8 - 0
tests/unit/src/unit/issues/Issue6559.hx

@@ -0,0 +1,8 @@
+package unit.issues;
+
+class Issue6559 extends unit.Test {
+	function test() {
+		var value = Reflect.getProperty(this, 'nonExistentField');
+		t(value == null);
+	}
+}