Skip to content

Conversation

medmahmoudhdaya
Copy link

This PR fixes an issue where Arr::dot() returned empty arrays instead of null when flattening nested structures.

Before:

Arr::dot(['meta' => []]);
// ['meta' => []]

After

Arr::dot(['meta' => []]);
// ['meta' => null]

this makes Arr::dot() more consistent for serialization and database use cases.

Fixes #57305

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.

Arr::dot() doesn't flatten empty arrays

1 participant