Closed CovertError closed 2 years ago
the MagicLink\Test\TestSupport\ CustomAutenticable
class should not be used outside of test environments.
I'm not using it but for some reason phpstorm is detecting it when I use Auth::guard('users')->user()->id
I experience the same issue. PhpStorm somehow detects the test class and applies it to the Auth facade. Even after invalidating caches, re-indexing, rebuilding the autoloader, this warning will still be shown.
so I'm using multiple authentication guards and when i try to get the id of a user like this
'patient_id' => Auth::guard('users')->user()->id,
I get an error in phpstorm that says thisbut functionally everything works