Browse Source

Fix #4445

PHP: surround array_unique with array_values in Type.getClassFields()
Alexander Kuzmenko 10 years ago
parent
commit
c382baef80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/php/_std/Type.hx

+ 1 - 1
std/php/_std/Type.hx

@@ -183,7 +183,7 @@ enum ValueType {
 			if($cls->getName() == $c->__tname__ && ($name = $p->getName()) !== '__properties__') $r[] = $name;
 			if($cls->getName() == $c->__tname__ && ($name = $p->getName()) !== '__properties__') $r[] = $name;
 		}
 		}
 		");
 		");
-		return untyped __php__("new _hx_array(array_unique($r))");
+		return untyped __php__("new _hx_array(array_values(array_unique($r)))");
 	}
 	}
 
 
 	public static function getEnumConstructs( e : Enum<Dynamic> ) : Array<String> untyped {
 	public static function getEnumConstructs( e : Enum<Dynamic> ) : Array<String> untyped {