<?php function updateObject(object $object): void { $object->newProperty = true; } $obj = new stdClass; var_dump($obj); updateObject($obj); var_dump($obj);
You have javascript disabled. You will not be able to edit any code.