Skip to content

Commit 7034604

Browse files
authored
Merge pull request #411 from bambamboole/fix-parts-property-call
Fix parts property call by using method getParts()
2 parents 411346a + e613d42 commit 7034604

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)