Skip to content

Commit

Permalink
Make the ParentAccessTrait::hasAccessToParent() method private (see #…
Browse files Browse the repository at this point in the history
…7005)

Description
-----------

SInce the method is ever only used by the voter including the trait, it should never have been protected.

Commits
-------

7148be5 Make the trait method private instead of protected
  • Loading branch information
aschempp committed Mar 12, 2024
1 parent d757d96 commit e1a041e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,7 +25,7 @@ public function __construct(private readonly AccessDecisionManagerInterface $acc
{
}

protected function hasAccessToParent(TokenInterface $token, string $attribute, CreateAction|DeleteAction|ReadAction|UpdateAction $action): bool
private function hasAccessToParent(TokenInterface $token, string $attribute, CreateAction|DeleteAction|ReadAction|UpdateAction $action): bool
{
$pids = [];

Expand Down

0 comments on commit e1a041e

Please sign in to comment.