diff --git a/composer.lock b/composer.lock index 3b88063..c8c99c0 100644 --- a/composer.lock +++ b/composer.lock @@ -2815,7 +2815,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index dc2c305..cb5c5d1 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -1073,9 +1073,9 @@ public function importAuthResource(Resource $resource): Resource $this->users->create( $resource->getId(), $resource->getEmail(), - $resource->getPhone(), null, - $resource->getUsername() + null, + null ); } diff --git a/src/Migration/Resources/Auth/User.php b/src/Migration/Resources/Auth/User.php index 3f72eef..e1cf80b 100644 --- a/src/Migration/Resources/Auth/User.php +++ b/src/Migration/Resources/Auth/User.php @@ -22,8 +22,8 @@ class User extends Resource */ public function __construct( string $id, - private readonly string $email = '', - private readonly string $username = '', + private readonly ?string $email = '', + private readonly ?string $username = '', private readonly ?Hash $passwordHash = null, private readonly ?string $phone = null, private readonly array $labels = [], @@ -88,7 +88,7 @@ public static function getName(): string /** * Get Email */ - public function getEmail(): string + public function getEmail(): ?string { return $this->email; }