Skip to content

Sub filter and new interfaces.#4

Merged
harikt merged 3 commits into
6.xfrom
sub-filter
May 28, 2026
Merged

Sub filter and new interfaces.#4
harikt merged 3 commits into
6.xfrom
sub-filter

Conversation

@harikt

@harikt harikt commented May 22, 2026

Copy link
Copy Markdown
Member

No description provided.

@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cb8831e8-14f0-4812-8439-fc10a849e203

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch sub-filter

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread src/FilterInterface.php
public function apply(&$values): bool;

public function getFailures(): FailureCollectionInterface;
public function apply(array|object $values): FilterResultInterface;

@harikt harikt May 23, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@pmjones @koriym any objections from moving away from this ?

Earlier we were changing values internally, now we are returning FilterResult . Please see below.

If you agree with this, then I will merge auraphp/Aura.Filter#166 and auraphp/Aura.Input#80

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@harikt No objections. Moving from mutating &$values with a boolean return to an immutable FilterResult is the right direction — I'm in favor.

@harikt harikt mentioned this pull request May 23, 2026
@harikt
harikt merged commit 8e4f784 into 6.x May 28, 2026
1 check passed
@harikt
harikt deleted the sub-filter branch May 28, 2026 07:40
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