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

remove unused logic #106

Merged
merged 1 commit into from
Sep 27, 2023
Merged

remove unused logic #106

merged 1 commit into from
Sep 27, 2023

Conversation

shmax
Copy link
Contributor

@shmax shmax commented Sep 27, 2023

I think the intent here is correct; if you pass in an empty array, then it should equate to checking for null, but as far as I can tell this logic has always been unreachable, because we currently throw an exception if the number of vars doesn't match the number of ? tokens. Can revisit someday.

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #106 (ff61d97) into master (4510109) will increase coverage by 0.12%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #106      +/-   ##
============================================
+ Coverage     99.70%   99.82%   +0.12%     
+ Complexity      938      936       -2     
============================================
  Files            34       34              
  Lines          2345     2341       -4     
============================================
- Hits           2338     2337       -1     
+ Misses            7        4       -3     
Files Coverage Δ
lib/WhereClause.php 100.00% <ø> (+3.19%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shmax shmax merged commit e41b6c4 into master Sep 27, 2023
10 checks passed
@shmax shmax deleted the improve-coverage branch September 27, 2023 23:33
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.

None yet

1 participant