Restore php 7.2 compat
??= is apparently only available from 7.4 on. See: https://wiki.php.net/rfc/null_coalesce_equal_operator
This commit is contained in:
parent
d19de72637
commit
1ecff64896
1 changed files with 1 additions and 1 deletions
|
@ -597,7 +597,7 @@ class libcalendaring_vcalendar implements Iterator
|
|||
]);
|
||||
|
||||
$attachment['data'] = $value;
|
||||
$attachment['size'] ??= strlen($value);
|
||||
$attachment['size'] = $attachment['size'] ?? strlen($value);
|
||||
$attachment['id'] = md5(($attachment['mimetype'] ?? 'application/octet-stream') . ($attachment['name'] ?? 'noname'));
|
||||
|
||||
$event['attachments'][] = $attachment;
|
||||
|
|
Loading…
Add table
Reference in a new issue