Alexander Kuzmenko před 8 roky
rodič
revize
bd95397a01

+ 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);
+	}
+}