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

dev/core#2043 Remove instance of pass-by-ref #18802

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Oct 19, 2020

Overview

Remove problematic coding practice per

https://lab.civicrm.org/dev/core/-/issues/2043

Before

'hidden' return property is added to pass-by-ref params

After

Return property returned

Technical Details

The postProcess function only uses one value generated in the private function
processMembership. This makes that a return value rather than something hidden in
the pass-by-ref

Test cover

CRM_Batch_Form_EntryTest.testProcessMembership with data set #0
CRM_Batch_Form_EntryTest.testProcessMembership with data set #1
CRM_Batch_Form_EntryTest.testMembershipRenewalDates

@civibot
Copy link

civibot bot commented Oct 19, 2020

(Standard links)

@civibot civibot bot added the master label Oct 19, 2020
@seamuslee001
Copy link
Contributor

Test fails relate I believe

@mattwire
Copy link
Contributor

@eileenmcnaughton Needs rebase

The postProcess function onlly uses one value generated in the private function
processMembersip. This makes that a return value rather than something hidden in
the pass-by-ref
@eileenmcnaughton
Copy link
Contributor Author

thanks - done

@eileenmcnaughton
Copy link
Contributor Author

test this please

@mattwire mattwire merged commit 960eaa3 into civicrm:master Nov 2, 2020
@eileenmcnaughton eileenmcnaughton deleted the refs branch November 2, 2020 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants