- It is,
should bereturn data[$key] ?? defaultValue;return data[$ key] ?? defaultValue; - This does not prevent the server from working, double-check that you’re using it correctly and the common troubleshooting steps.
return data[$key] ?? defaultValue;
should be
return data[$ key] ?? defaultValue;