Skip to content

Allow null values in addCustomField #527

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 24, 2024
Merged

Allow null values in addCustomField #527

merged 1 commit into from
Mar 24, 2024

Conversation

flack
Copy link
Contributor

@flack flack commented Feb 8, 2024

e.g. to remove a previous selection from a checkbox field, see #525

e.g. to remove a previous selection from a checkbox field
@@ -150,7 +150,7 @@ public function getCustomFields(): ?array
return $this->customFields;
}

public function addCustomField(string $key, string|int|float|array $value): static
public function addCustomField(string $key, null|string|int|float|array $value): static

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scope keyword static must be followed by a single space

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's not a scope keyword

@lesstif lesstif merged commit db8b8d0 into lesstif:main Mar 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants