Skip to content

Accept the source data to be array in fromObject#12

Merged
mbabker merged 2 commits intojoomla-framework:masterfrom
izharaazmi:patch-1
Sep 5, 2015
Merged

Accept the source data to be array in fromObject#12
mbabker merged 2 commits intojoomla-framework:masterfrom
izharaazmi:patch-1

Conversation

@izharaazmi
Copy link
Copy Markdown
Contributor

in fromObject() we call the private function arrayFromObject() which is capable of handling arrays as well. Allowing an array as argument to fromObject() will not break anything plus it will convert any nested object type values in it appropriately and give desired result.

in `fromObject()` we call the private function `arrayFromObject()` which is capable of handling arrays as well. Allowing an `array` as argument to `fromObject()` will not break anything **plus** it will convert any nested `object` type values in it appropriately and give desired result.
@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Sep 5, 2015

Is this something you could add a test case for?

@izharaazmi
Copy link
Copy Markdown
Contributor Author

Yes, I was about to ask that. Can you advise me that should I replicate every test seed with input type to be array, or just one of them would do?

@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Sep 5, 2015

Just one seed for the added case is all that's needed.

@izharaazmi
Copy link
Copy Markdown
Contributor Author

I have update the test case for my changes.

mbabker added a commit that referenced this pull request Sep 5, 2015
Accept the source data to be array in fromObject
@mbabker mbabker merged commit ecf1823 into joomla-framework:master Sep 5, 2015
@izharaazmi
Copy link
Copy Markdown
Contributor Author

It has been over six months and this repository is not pulled into the cms yet. I expected the changes to be a part of J3.5 already.
Is there anything that is stopping us?

@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Jan 30, 2016

Tagged a release

nibra pushed a commit that referenced this pull request Aug 14, 2022
Migrate old KeychainManager to joomla/console
nibra pushed a commit that referenced this pull request Aug 14, 2022
Modify array syntax covers setting
nibra added a commit that referenced this pull request Aug 14, 2022
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.

2 participants