Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error: Auth Data #165

Open
AlexDominguez18 opened this issue Jan 7, 2025 · 0 comments
Open

[Bug]: Error: Auth Data #165

AlexDominguez18 opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels

Comments

@AlexDominguez18
Copy link

Extension Version

0.1.15

PHP Binary

Local PHP

Operating System

Linux

What happened?

Fresh install of the extension and I got this error message on the terminal logs:

2025-01-07 11:20:05.441 [info] Activating Laravel Extension...
2025-01-07 11:20:05.442 [info] Started
2025-01-07 11:20:05.442 [error] Auth Data

Error: Auth Data

__VSCODE_LARAVEL_START_OUTPUT__
   TypeError 

  get_class(): Argument #1 ($object) must be of type object, null given

  at vendor/_laravel_ide/discover-8118b18bfca517f92f5798dc18717d4e.php:37
     33▕         $reflection = new \ReflectionFunction($policy);
     34▕ 
     35▕         $policyClass = null;
     36▕ 
  ➜  37▕         if (get_class($reflection->getClosureThis()) === \Illuminate\Auth\Access\Gate::class) {
     38▕             $vars = $reflection->getClosureUsedVariables();
     39▕ 
     40▕             if (isset($vars['callback'])) {
     41▕                 [$policyClass, $method] = explode('@', $vars['callback']);

  1   [internal]:0

I'm using php 8.2.26 on a WSL Debian 12.7

Mimimal Code Sample

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants