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 handling for impossible array #22494

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Remove handling for impossible array

Before

CRM_Financial_BAO_FinancialType::buildPermissionedClause is only called from one place
outside of tests. That place passes in this->_whereClause which is the result of calling
this->whereClause() a few lines earlier. As that function always returns a string
we know that it cannot be an array & can remove the handling

After

And then it waas gone

Technical Details

Comments

CRM_Financial_BAO_FinancialType::buildPermissionedClause is only called from one place
outside of tests. That place passes in this->_whereClause which is the result of calling
this->whereClause() a few lines earlier. As that function always returns a string
we know that it cannot be an array & can remove the handling
@civibot
Copy link

civibot bot commented Jan 13, 2022

(Standard links)

@civibot civibot bot added the master label Jan 13, 2022
@eileenmcnaughton eileenmcnaughton merged commit 156c4c2 into civicrm:master Jan 13, 2022
@eileenmcnaughton eileenmcnaughton deleted the fin branch January 13, 2022 01:54
@eileenmcnaughton eileenmcnaughton restored the fin branch January 13, 2022 05:28
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