This is an error 404
There are `0` results
preferences:
151.73 ms | 1399 KiB | 7 Q<?hh
class Foo {
function get(): ?int {
static $called = false;
if (!$called) {
$called = true;
return 42;
}
return null;
}
}
function doStuff(Foo $foo) {
var_dump($foo->get() ? $foo->get() : 'was null the first time');
}
doStuff(new Foo());