TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
533 B
38 lines
533 B
--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) {
|
|
}
|
|
}
|
|
|