Delete user hook - could not get the user details in $user variable

In $user variable doesn’t returning any data in delete hook…

Topic link - https://docs.nextcloud.com/server/latest/developer_manual/basics/events.html#hooks

<?php

namespace OCA\MyApp\Hooks;

use OCP\IUserManager;

class UserHooks {

    private $userManager;

    public function __construct(IUserManager $userManager){
        $this->userManager = $userManager;
    }

    public function register() {
        $callback = function($user) {
            // your code that executes before $user is deleted
        };
        $this->userManager->listen('\OC\User', 'preDelete', $callback);
    }

}