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

[REF] [Import] [Trivial] Make mapperKeys parameter optional in construct #23307

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[REF] [Import] [Trivial] Make mapperKeys parameter optional in construct

Before

$mapperKeys is a required reference parameter & hence it is necessary to instantiate an empty array when called with an empty array (as happens in the DataSource usage ++)

After

optional parameter

Technical Details

@colemanw @demeritcowboy @seamuslee001 @totten - I'm trying to pull out some of the trivial changes that pretty much all PRs require into tiny PRs like this to try to get them merged & reduce the conflicts - would be good to get this merged & then I can rebase all the others that include some form of it

Comments

@civibot
Copy link

civibot bot commented Apr 26, 2022

(Standard links)

@civibot civibot bot added the master label Apr 26, 2022
@eileenmcnaughton
Copy link
Contributor Author

Also #23308

@demeritcowboy
Copy link
Contributor

I guess this is ok. I'm not sure what &$x means when $x is created as a default parameter value, but php seems ok with it.

@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy - yeah those &$ could go too tbh - they are already gone from some - shall I pull them out as well so no-one has to think about them ever again?

@demeritcowboy
Copy link
Contributor

shall I pull them out as well so no-one has to think about them ever again

Maybe in another PR. I haven't personally looked at what it would change. Whereas just making it optional doesn't seem to change anything.

@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy ok - I think the params will wind up disappearing anyway - depending how far I get - I don't think they are actually the right eventual params but I think we need to stop saving labels & save names instead per #23288 before we can do things in a sane way

@eileenmcnaughton eileenmcnaughton merged commit 106e0ff into civicrm:master Apr 26, 2022
@eileenmcnaughton eileenmcnaughton deleted the import_defaults branch April 26, 2022 23:08
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