Arquivos
hhvm/hphp/test/slow/array_init/add_elem_c_interp.php
T
mwilliams 083b1d32ad Fix SpillStack's argument validation
It was asserting that the input to a SpillStack is
a subtype of one of Gen, Cls or None, rather than subtype of
Gen|Cls or None.

Added a new type Type::StackElem, and used it.
2013-07-06 11:12:27 -07:00

16 linhas
160 B
PHP

<?php ;
class X {
public $foo;
function test() {
$a = array(
null => $this->foo,
);
return $a;
}
}
$x = new X;
var_dump($x->test());