We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411346a commit e613d42Copy full SHA for e613d42
src/Handlers/Auth/GuardHandler.php
@@ -111,7 +111,7 @@ private static function findGuardNameInCallChain(MethodCall $methodCall): ?strin
111
112
// auth() or auth('guard') call
113
if ($previous_call instanceof FuncCall) {
114
- if ($previous_call->name instanceof Name && $previous_call->name->parts[0] === 'auth') {
+ if ($previous_call->name instanceof Name && $previous_call->name->getParts()[0] === 'auth') {
115
$call_contains_guard_name = $previous_call; // exit from while loop
116
}
117
0 commit comments