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

Allow FilterCollection to be used anywhere that FilterInterface can be used #2761

Merged
merged 1 commit into from
Jan 8, 2023
Merged

Allow FilterCollection to be used anywhere that FilterInterface can be used #2761

merged 1 commit into from
Jan 8, 2023

Conversation

chappy84
Copy link
Contributor

@chappy84 chappy84 commented Jan 8, 2023

What it says on the tin really.
I wanted to combine the CustomFilter with the StandardFilter, so I could reduce the number of fields, but retain the smaller size of the standard file. The FilterCollection couldn't be passed to WriterCollection::setFilter as it didn't implement FilterInterface, but it seemed to make sense allow a combination of filters to be passed to this, and FilterCollection seemingly being intended for this purpose, hence these updates.

@asgrim asgrim added this to the 6.1.3 milestone Jan 8, 2023
Copy link
Member

@asgrim asgrim left a comment

Choose a reason for hiding this comment

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

No BC breaks here, and seems reasonable

@asgrim asgrim self-assigned this Jan 8, 2023
@asgrim asgrim enabled auto-merge January 8, 2023 20:17
@codecov
Copy link

codecov bot commented Jan 8, 2023

Codecov Report

Base: 50.96% // Head: 50.97% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (7b8c498) compared to base (78fbad5).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##              6.1.x    #2761   +/-   ##
=========================================
  Coverage     50.96%   50.97%           
- Complexity      875      876    +1     
=========================================
  Files          1820     1820           
  Lines         68000    68002    +2     
  Branches      30718    30718           
=========================================
+ Hits          34659    34661    +2     
  Misses        33341    33341           
Flag Coverage Δ
full 45.84% <ø> (ø)
lite 2.10% <ø> (ø)
phpunit 74.09% <100.00%> (+0.01%) ⬆️
standard 26.52% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Browscap/Filter/FilterCollection.php 84.21% <100.00%> (+1.85%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@asgrim asgrim disabled auto-merge January 8, 2023 20:23
@asgrim asgrim merged commit 69e86e0 into browscap:6.1.x Jan 8, 2023
@chappy84 chappy84 deleted the filter_collection_mods branch January 8, 2023 20:27
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.

None yet

2 participants