Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
UserFrosting committed Dec 10, 2024
1 parent ec8ac85 commit fb9bdd4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/src/Authorize/AccessConditionEvaluator.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,16 @@ private function resolveParamPath($path)
if (is_array($value) && isset($value[$token])) {
$value = $value[$token];
continue;
}

// @phpstan-ignore-next-line Allow variable property for this use
} elseif (is_object($value) && isset($value->$token)) {
if (is_object($value) && isset($value->$token)) {
// @phpstan-ignore-next-line Allow variable property for this use
$value = $value->$token;
continue;
} else {
throw new AuthorizationException("Cannot resolve the path \"$path\". Error at token \"$token\".");
}

throw new AuthorizationException("Cannot resolve the path \"$path\". Error at token \"$token\".");
}

return $value;
Expand Down

0 comments on commit fb9bdd4

Please sign in to comment.