ソースを参照

[php] fix test 8053 again

Alexander Kuzmenko 6 年 前
コミット
2bb6f62c2e
2 ファイル変更2 行追加2 行削除
  1. 1 1
      tests/runci/targets/Php.hx
  2. 1 1
      tests/unit/src/unit/issues/Issue8053.hx

+ 1 - 1
tests/runci/targets/Php.hx

@@ -31,7 +31,7 @@ class Php {
 	static public function run(args:Array<String>) {
 		getPhpDependencies();
 
-	var binDir = "bin/php";
+		var binDir = "bin/php";
 
 		var prefixes = [[]];
 		if(isCi()) {

+ 1 - 1
tests/unit/src/unit/issues/Issue8053.hx

@@ -16,7 +16,7 @@ class Issue8053 extends unit.Test {
 		var a:Dynamic = if(PHP_VERSION_ID < 70100) {
 			//Prior to PHP 7.1.0 there was no way to add a property with an empty name to an existing object.
 			//So, we create an object with an empty property name by transforming an associative array with an empty string index.
-			object(assocDecl({b : 1}));
+			object(assocDecl({"" : 1}));
 		} else {
 			var a = {};
 			Reflect.setField(a, b, 1);