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

+ Patch for arrays #4

Merged
merged 1 commit into from
Aug 5, 2014
Merged

+ Patch for arrays #4

merged 1 commit into from
Aug 5, 2014

Conversation

texnikru
Copy link
Contributor

@texnikru texnikru commented Aug 5, 2014

Patches array by list of xpath-value pairs.

__::patch(['addr' => ['country' => 'US', 'zip' => 12345]], ['/addr/country' => 'CA', '/addr/zip' => 54321]);
// → ['addr' => ['country' => 'CA', 'zip' => 54321]]

@maciejczyzewski
Copy link
Owner

Thx! Beer for you! 🍺

maciejczyzewski added a commit that referenced this pull request Aug 5, 2014
@maciejczyzewski maciejczyzewski merged commit df90c95 into maciejczyzewski:master Aug 5, 2014
@texnikru
Copy link
Contributor Author

texnikru commented Aug 7, 2014

It will be useful in case you share new version with it

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