083b1d32ad
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.
16 linhas
160 B
PHP
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());
|