Turn FFP errors upto 11; report everything
[hiphop-php.git] / hphp / test / slow / nullsafe / nullsafe-call-2.php
blob182e01fe7b59c5ea656eadc7e94a697d979fbb67
1 <?hh // strict
2 class C {
3 public function foo(): D {
4 return new D();
7 class D {}
8 function test(?C $c): D {
9 return $c?->foo();
11 function main(): void {
12 $c = new C();
13 var_dump(test($c));
14 var_dump(test(null));
16 main();