-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Registry converts objects from merged registry to array #34981
Comments
Can't confirm when using recursive = true in merge():
Output:
|
@horvathcsabazoltan Can you check and report back if it works for you when doing as advised in the previous comment? Thanks in advance. |
It's almost perfect. But all classes are converted to stdClass.
Output:
|
Another strange thing: associative arrays are converted to stdClass if
Output:
|
All I can say is: "That is by design." if I inspect the Registry class and and merge(), bindData() . I think the right place for the issue/discussion is https://github.com/joomla-framework/registry Joomla 3 uses version 1.6 at the moment https://github.com/joomla-framework/registry/blob/1.6.3/src/Registry.php . Joomla 4 the current 2 beta https://github.com/joomla-framework/registry/blob/2.0.0-beta/src/Registry.php . But there I don't see a change concerning this issue here. |
@ReLater: Thank you, I submitted a new issue where you said: joomla-framework/registry#57 |
closing here then |
Steps to reproduce the issue
Expected result
Preserve item type (including class)
Actual result
The original item returned as array
System information (as much as possible)
Joomla 3.9.26
Additional comments
The text was updated successfully, but these errors were encountered: