Set default value for privacy parameter in settingsAddInformationField method

This commit is contained in:
netkas 2025-03-19 14:00:05 -04:00
parent c70205f2ac
commit 6a1aa6b353
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -938,7 +938,7 @@
* @return bool Returns True if the field was added
* @throws RpcException Thrown if there was an error with the RPC request
*/
public function settingsAddInformationField(InformationFieldName|string $field, string $value, null|PrivacyState|string $privacy): bool
public function settingsAddInformationField(InformationFieldName|string $field, string $value, null|PrivacyState|string $privacy=null): bool
{
if($field instanceof InformationFieldName)
{