Refactor the parsing and processing of configuration options ... just a bit ...
[hiphop-php.git] / hphp / test / slow / nullsafe / nullsafe-call-2.php
blob307830beea23e83932346099741eff1eae23df44
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() {
12 $c = new C();
13 var_dump(test($c));
14 var_dump(test(null));
16 main();