mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
chore: fix or suppress psalm errors for BeforeZipCreatedEvent
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
7a88cb0709
commit
fb673b0d85
2 changed files with 2 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ class BeforeZipCreatedListener implements IEventListener {
|
|||
return;
|
||||
}
|
||||
|
||||
/** @psalm-suppress DeprecatedMethod should be migrated to getFolder but for now it would just duplicate code */
|
||||
$dir = $event->getDirectory();
|
||||
$files = $event->getFiles();
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use OCP\Files\Folder;
|
|||
* @since 25.0.0
|
||||
*/
|
||||
class BeforeZipCreatedEvent extends Event {
|
||||
private ?string $directory = null;
|
||||
private string $directory = '';
|
||||
private bool $successful = true;
|
||||
private ?string $errorMessage = null;
|
||||
private ?Folder $folder = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue