Skip to content

Result::toArray() convert all objects to arrays#210

Merged
otsch merged 2 commits intomainfrom
bugfix/result-to-array
May 16, 2025
Merged

Result::toArray() convert all objects to arrays#210
otsch merged 2 commits intomainfrom
bugfix/result-to-array

Conversation

@otsch
Copy link
Member

@otsch otsch commented May 16, 2025

The Result::toArray() method now converts all objects contained in the Result array (at any level of the array) to arrays. Also, if the only element in a result array has some autogenerated key containing "unnamed", but the value also is an associative array with string keys, the method only returns that child array.

otsch added 2 commits May 16, 2025 18:37
The `Result::toArray()` method now converts all objects contained in the
Result array (at any level of the array) to arrays. Also, if the only
element in a result array has some autogenerated key containing
"unnamed", but the value also is an associative array with string keys,
the method only returns that child array.
@otsch otsch merged commit 06cd16a into main May 16, 2025
6 checks passed
@otsch otsch deleted the bugfix/result-to-array branch May 16, 2025 16:55
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.

1 participant