foo = $b; } } $x = new X; $t = null; $x->foo($t);