Skip to content

Commit e613d42

Browse files
committed
fix parts property call by using method getParts()
1 parent 411346a commit e613d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Handlers/Auth/GuardHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private static function findGuardNameInCallChain(MethodCall $methodCall): ?strin
111111

112112
// auth() or auth('guard') call
113113
if ($previous_call instanceof FuncCall) {
114-
if ($previous_call->name instanceof Name && $previous_call->name->parts[0] === 'auth') {
114+
if ($previous_call->name instanceof Name && $previous_call->name->getParts()[0] === 'auth') {
115115
$call_contains_guard_name = $previous_call; // exit from while loop
116116
}
117117
}

0 commit comments

Comments
 (0)