Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Boolean filter #149

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Jun 13, 2024

  • Removes inheritance
  • Changes constructor signature to only accept a well-defined array of options
  • Removes option getters and setters
  • Marks class as immutable
  • Fixes all psalm issues in src and tests
  • Expands tests

Serves as another example for general direction of filters as per #118

In this case, assuming the template is added to FilterInterface, the Boolean filter would get @implements FilterInterface<bool>

- Removes inheritance
- Changes constructor signature to only accept a well-defined array of options
- Removes option getters and setters
- Marks class as immutable
- Fixes all psalm issues in src and tests
- Expands tests

Signed-off-by: George Steel <[email protected]>
@gsteel gsteel added this to the 3.0.0 milestone Jun 13, 2024
@Ocramius Ocramius self-assigned this Jun 24, 2024
@Ocramius Ocramius merged commit db97199 into laminas:3.0.x Jun 24, 2024
11 of 12 checks passed
@Ocramius
Copy link
Member

Thanks @gsteel!

@gsteel gsteel deleted the v3/refactor-boolean-filter branch June 24, 2024 14:08
@gsteel gsteel mentioned this pull request Sep 8, 2024
54 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants