diff --git a/services/UsersService.php b/services/UsersService.php index bc530e1d..30edeff1 100644 --- a/services/UsersService.php +++ b/services/UsersService.php @@ -4,7 +4,7 @@ namespace Grocy\Services; class UsersService extends BaseService { - public function CreateUser(string $username, string $firstName, string $lastName, string $password, string $pictureFileName = null) + public function CreateUser(string $username, ?string $firstName, ?string $lastName, string $password, string $pictureFileName = null) { $newUserRow = $this->getDatabase()->users()->createRow([ 'username' => $username,