<?php class ClassName { public function foo(?stdClass $bar) { } } $instance = new ClassName(); $instance->foo(new stdClass()); $instance->foo(null);
You have javascript disabled. You will not be able to edit any code.