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