I only see use cases were null coalesing can be used to chain values, but not to omit any value.
Am I missing something essential or is there really no shorthand way to write this:
$model->name = "Example";
if(isset($input->name)) {
$validName = $this->doSomeValidationEventualyReturnNull($input->name);
if($validName) {
$model->name = $validName;
}
}
I can propose this one liner, has something to do with null coalescing.