<?php

namespace Edbizarro\LaravelFacebookAds\Traits;

use FacebookAds\Object\AdAccountUser;

trait HasAccountUser
{
    /**
     * @param string|int $accountUserId
     *
     * @return AdAccountUser
     */
    protected function accountUser($accountUserId = 'me'): AdAccountUser
    {
        return (new AdAccountUser)->setId($accountUserId);
    }
}

<?php

namespace Edbizarro\LaravelFacebookAds\Traits;

use FacebookAds\Object\User;

trait HasAccountUser
{
    /**
     * @param string|int $accountUserId
     *
     * @return User
     */
    protected function accountUser($accountUserId = 'me'): User
    {
        return (new User)->setId($accountUserId);
    }
}

Change AccountUser to User to remove deprecation error
         Change AccountUser to User to remove deprecation error
