Apply non-implicit nullables rule

[MAILPOET-6491]
This commit is contained in:
David Remer
2025-03-06 08:16:02 +02:00
committed by Ján Mikláš
parent 540feb6364
commit 0a3d49c0cd
134 changed files with 237 additions and 237 deletions

View File

@@ -141,7 +141,7 @@ class SubscriberCustomFieldsFactory {
private function getCustomFieldValue(SubscriberPayload $payload, CustomFieldEntity $customField): ?string {
$subscriberCustomField = $payload->getSubscriber()->getSubscriberCustomFields()->filter(
function (SubscriberCustomFieldEntity $subscriberCustomField = null) use ($customField) {
function (?SubscriberCustomFieldEntity $subscriberCustomField = null) use ($customField) {
return $subscriberCustomField && $subscriberCustomField->getCustomField() === $customField;
}
)->first() ?: null;