<?php class A { public function test(A $dep = null){ print_r($dep?$dep:"null"); } } $a = new A(); $b = new A(); $a->test(); $a->test($b);
You have javascript disabled. You will not be able to edit any code.