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

Fix & Add Tests for Arr::undot() #3

Merged
merged 2 commits into from
Jun 12, 2024
Merged

Fix & Add Tests for Arr::undot() #3

merged 2 commits into from
Jun 12, 2024

Conversation

tarecord
Copy link
Contributor

undot() would always return an empty array when in fact it is supposed to expand dot-notation arrays back out into their nested originals:

$dot = [
    'one.two' => 3
];

// Becomes

$undot = [
  'one' => [
    'two' => 3,
  ],
];

@tarecord tarecord requested a review from borkweb June 11, 2024 17:48
@tarecord tarecord self-assigned this Jun 11, 2024
@tarecord tarecord merged commit fc2199a into main Jun 12, 2024
2 checks passed
@tarecord tarecord deleted the bugfix/undot branch June 12, 2024 16:00
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