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: handle integer key in path mapping modifier #431

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

romm
Copy link
Member

@romm romm commented Oct 11, 2023

The following now works properly:

\CuyZ\Valinor\Mapper\Source\Source::array([0 => 'foo'])
    ->map([
        '0' => 'some_key'
    ]);

Fixes #430

The following now works properly:

```php
\CuyZ\Valinor\Mapper\Source\Source::array([0 => 'foo'])
    ->map([
        '0' => 'some_key'
    ]);
```
@romm romm enabled auto-merge (rebase) October 11, 2023 08:34
@romm romm merged commit 9419f6d into CuyZ:master Oct 11, 2023
14 checks passed
@romm romm deleted the fix/path-mapping-modifier-integer-key branch October 11, 2023 08:35
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.

Using path mapping modifier fails when given key is an integer
1 participant