- 新增 multiple default array properties 测试用例 - 移除 ArrayInitPlan 的 requiresRuntimeInit 检查逻辑 - 简化 wrapArrayInitPlan 方法实现pull/2/head
parent
0dc846a4fc
commit
29236bb66a
2 changed files with 38 additions and 4 deletions
@ -0,0 +1,38 @@ |
|||||||
|
--TEST-- |
||||||
|
multiple default array properties |
||||||
|
--FILE-- |
||||||
|
<?php |
||||||
|
|
||||||
|
class Test |
||||||
|
{ |
||||||
|
public array $literalStrings = []; |
||||||
|
public array $classMap = []; |
||||||
|
public array $stdTypeMap = []; |
||||||
|
public array $funcMap = []; |
||||||
|
public array $propMap = []; |
||||||
|
} |
||||||
|
|
||||||
|
function main(): void |
||||||
|
{ |
||||||
|
$obj = new Test; |
||||||
|
var_dump(get_object_vars($obj)); |
||||||
|
} |
||||||
|
?> |
||||||
|
--EXPECT-- |
||||||
|
array(5) { |
||||||
|
["literalStrings"]=> |
||||||
|
array(0) { |
||||||
|
} |
||||||
|
["classMap"]=> |
||||||
|
array(0) { |
||||||
|
} |
||||||
|
["stdTypeMap"]=> |
||||||
|
array(0) { |
||||||
|
} |
||||||
|
["funcMap"]=> |
||||||
|
array(0) { |
||||||
|
} |
||||||
|
["propMap"]=> |
||||||
|
array(0) { |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue