From 4351415ee4b2b11a1e44bcb616ff70ee41b9d78e Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 2 Jul 2025 17:54:29 +0200 Subject: [PATCH] Rename shouldSkipPathLeadingThrough() to shouldSkipPathLeadingThroughConstraint() --- src/RLS/PolicyManagers/TableRLSManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RLS/PolicyManagers/TableRLSManager.php b/src/RLS/PolicyManagers/TableRLSManager.php index 5d5c5161..9814d0ff 100644 --- a/src/RLS/PolicyManagers/TableRLSManager.php +++ b/src/RLS/PolicyManagers/TableRLSManager.php @@ -382,7 +382,7 @@ class TableRLSManager implements RLSPolicyManager $validConstraints = []; foreach ($formattedConstraints as $constraint) { - if (! $this->shouldSkipPathLeadingThrough($constraint)) { + if (! $this->shouldSkipPathLeadingThroughConstraint($constraint)) { $validConstraints[] = $constraint; } } @@ -400,7 +400,7 @@ class TableRLSManager implements RLSPolicyManager * * @param array $constraint Formatted constraint */ - protected function shouldSkipPathLeadingThrough(array $constraint): bool + protected function shouldSkipPathLeadingThroughConstraint(array $constraint): bool { $comment = $constraint['comment'] ?? null;