You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it is very common to convert the patched document to an array afterwards. This given, it would be nice to add a method which handles this within the lib.
I imagine an API like
$patchedArray = (new Patch($targetDocument, $patchDocument))->apply()->toArray();
$patchedDocument = (new Patch($targetDocument, $patchDocument))->apply()->toJson();
This implies that apply() does just return $this.
If this is a valuable feature I will add a PR.
The text was updated successfully, but these errors were encountered:
I think it is very common to convert the patched document to an array afterwards. This given, it would be nice to add a method which handles this within the lib.
I imagine an API like
This implies that
apply()
does just return$this
.If this is a valuable feature I will add a PR.
The text was updated successfully, but these errors were encountered: