Closed alshakero closed 6 years ago
I will review.
@alshakero I suppose the fix means that you fully agree with my claim that the callback should be called after the reflection?
I saw this as the desired behavior all along, it was surprising to me that this bug survived until now. JSONPatcherProxy IMO is meant to be a non-intrusive observer. Not an intercepter that gives the chance to throw errors/validate changes before reflection. I agree that reflection should happen before notification.
@miyconst may we include this in 2.3.1? I think we should
Yes, we can and should.
There is a lot of room for more DRYness in setTrap. On it.
Fixes: https://github.com/Palindrom/JSONPatcherProxy/issues/21
@warpech can you review please?
Reviewing while ignoring the whitespace saves you a minute or two (https://github.com/Palindrom/JSONPatcherProxy/compare/Reflect-earlier?expand=1&w=1)