Skip to content

MsGraph::login($this->user); not working as expected? #106

@klebk

Description

@klebk

Hi!

Today I'm trying to connect inside Job in way you describe in documentation, but it looks like it is not possible after version 4.0.2 because required model is defined as Microsoft\Graph\Model\User or TestUser

MsGraph::login($this->user);
$userData = MsGraph::get('me');

Error I'm getting:
Dcblogdev\MsGraph\MsGraph::login(): Argument #1 ($user) must be of type Microsoft\Graph\Model\User|TestUser|null, App\Models\User given

public static function login(User|TestUser|null $user): void

Thank you for your work.
Klemen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions