Turn FFP errors upto 11; report everything
[hiphop-php.git] / hphp / test / quick / fsc02.php
blob5ecf8f11b544ebdaec5cda84aa75f0c316c97da4
1 <?hh
2 class B {
3 public function f1() {
4 var_dump(get_called_class());
5 if ($this !== null) {
6 var_dump(get_class($this));
7 } else {
8 var_dump(null);
10 echo "\n";
13 class C extends B {
14 public function g() {
15 $obj = new B();
16 forward_static_call(array('B', 'f1'));
17 call_user_func(array('B', 'f1'));
20 $obj = new C();
21 $obj->g();