Skip to content

Rebind the pattern backend failure policy via useFailOpen() - #128

Merged
sascha-egerer merged 1 commit into
mainfrom
pr125-fixes
Aug 7, 2026
Merged

Rebind the pattern backend failure policy via useFailOpen()#128
sascha-egerer merged 1 commit into
mainfrom
pr125-fixes

Conversation

@sascha-egerer

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings August 7, 2026 10:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates SnapshotBlocklistMatcher::withBackend() to preserve the matcher’s fail-open/fail-closed behavior by reapplying it through the useFailOpen() setter when rebinding to a different pattern backend.

Changes:

  • Replace direct assignment to $failOpen with a call to useFailOpen() when creating a rebound matcher.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sascha-egerer
sascha-egerer merged commit 28316e6 into main Aug 7, 2026
14 checks passed
@sascha-egerer
sascha-egerer deleted the pr125-fixes branch August 7, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants