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.
 
 

24 lines
405 B

--TEST--
array_merge with mixed typed arguments
--FILE--
<?php
class TestArrayMerge {
public array $arr1 = ['foo'];
public array $arr2 = ['baz'];
}
function main() {
$o = new TestArrayMerge;
$v = any(['bar']);
$array = array_merge($o->arr1, $v, $o->arr2);
var_dump($array);
}
?>
--EXPECT--
array(3) {
[0]=>
string(3) "foo"
[1]=>
string(3) "bar"
[2]=>
string(3) "baz"
}