ticket system improved logging on invalid date
This commit is contained in:
@@ -309,6 +309,7 @@ final class MailMessageData implements MailMessageInterface, JsonSerializable
|
||||
}
|
||||
$dateTime = date_create($date->getValue());
|
||||
if ($dateTime === false) {
|
||||
throw new InvalidArgumentException('Invalid date: '.$date->getValue());
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user