Skip to content

Commit fb673b0

Browse files
come-ncbackportbot[bot]
authored andcommitted
chore: fix or suppress psalm errors for BeforeZipCreatedEvent
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 7a88cb0 commit fb673b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/files_sharing/lib/Listener/BeforeZipCreatedListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function handle(Event $event): void {
3232
return;
3333
}
3434

35+
/** @psalm-suppress DeprecatedMethod should be migrated to getFolder but for now it would just duplicate code */
3536
$dir = $event->getDirectory();
3637
$files = $event->getFiles();
3738

lib/public/Files/Events/BeforeZipCreatedEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @since 25.0.0
2222
*/
2323
class BeforeZipCreatedEvent extends Event {
24-
private ?string $directory = null;
24+
private string $directory = '';
2525
private bool $successful = true;
2626
private ?string $errorMessage = null;
2727
private ?Folder $folder = null;

0 commit comments

Comments
 (0)