-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add comment in SyncLivePhotosListener #41924
Conversation
$this->handleDeletion($event, $peerFile); | ||
} elseif ($event instanceof CacheEntryRemovedEvent) { | ||
$peerFile->delete(); | ||
} elseif ($event instanceof BeforeNodeRestoredEvent) { |
Check failure
Code scanning / Psalm
RedundantCondition Error
if (!str_ends_with($targetName, ".".$sourceExtension)) { | ||
$event->abortOperation(new NotPermittedException("Cannot change the extension of a live photo")); | ||
} | ||
$this->handleMove($event, $peerFile); |
Check notice
Code scanning / Psalm
ArgumentTypeCoercion Note
} | ||
$this->handleMove($event, $peerFile); | ||
} elseif ($event instanceof BeforeNodeDeletedEvent) { | ||
$this->handleDeletion($event, $peerFile); |
Check notice
Code scanning / Psalm
ArgumentTypeCoercion Note
} elseif ($event instanceof CacheEntryRemovedEvent) { | ||
$peerFile->delete(); | ||
} elseif ($event instanceof BeforeNodeRestoredEvent) { | ||
$this->handleRestore($event, $peerFile); |
Check notice
Code scanning / Psalm
ArgumentTypeCoercion Note
Signed-off-by: Louis Chemineau <louis@chmn.me>
a80f5f4
to
e6bc34c
Compare
/backport to stable28 |
No description provided.