<?php class Something { public function otherThing(stdClass $canBeNullOrAnObject = null) { echo get_class($canBeNullOrAnObject); } } $s = new Something; $s->otherThing(); echo PHP_EOL; $s->otherThing(new stdClass);
You have javascript disabled. You will not be able to edit any code.