Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Nov 13, 2024

Backport of PR #48583

Requires: #49264

@backportbot backportbot bot requested a review from miaulalala as a code owner November 13, 2024 23:33
@backportbot backportbot bot requested a review from ChristophWurst November 13, 2024 23:33
@backportbot backportbot bot requested a review from st3iny November 13, 2024 23:33
@backportbot backportbot bot added the 3. to review Waiting for reviews label Nov 13, 2024
@backportbot backportbot bot added this to the Nextcloud 30.0.3 milestone Nov 13, 2024
$icalMsg = new VCalendar();

foreach ($calendar->select('VTIMEZONE') as $timezone) {
$icalMsg->add(clone $timezone);

Check notice

Code scanning / Psalm

MixedClone Note

Cannot clone mixed
// the attendee was removed and we need to send them a CANCEL message.
// Also If the meeting STATUS property was changed to CANCELLED
// we need to send the attendee a CANCEL message.
if (!$attendee['newInstances'] || $eventInfo['status'] === 'CANCELLED') {

Check notice

Code scanning / Psalm

RiskyTruthyFalsyComparison Note

Operand of type array<never, never>|mixed contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead.
$message->method = $icalMsg->METHOD = 'CANCEL';
$message->significantChange = true;
// clone base event
$event = clone $eventInfo['instances']['master'];

Check notice

Code scanning / Psalm

MixedClone Note

Cannot clone mixed
$oldEventInfo['significantChangeHash'] !== $eventInfo['significantChangeHash'];

foreach ($attendee['newInstances'] as $instanceId => $instanceInfo) {
$currentEvent = clone $eventInfo['instances'][$instanceId];

Check notice

Code scanning / Psalm

MixedClone Note

Cannot clone mixed
@SebastianKrupinski SebastianKrupinski requested review from kesselb and removed request for miaulalala November 13, 2024 23:39
@SebastianKrupinski SebastianKrupinski merged commit 8378412 into stable30 Nov 14, 2024
171 checks passed
@SebastianKrupinski SebastianKrupinski deleted the backport/48583/stable30 branch November 14, 2024 16:03
@skjnldsv skjnldsv mentioned this pull request Nov 27, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants