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
{{ message }}
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
How many Items are now in the $itemList? Yes, none at all. This is because array_diff does not compare by reference, but by JSON representation of the internal state.
Is this on purpose?
(The same issue exists with many other PaypalModels.)
The text was updated successfully, but these errors were encountered:
This is known behavior in this convenience method. It should be rare that you have the same items or other objects with the same exact JSON representation in real world scenarios. If you must control the exact items, you can use the setItems or equivalent setter for the property.
In writing #1034, I discovered another potential bug:
Imagine adding an item twice:
How many Items are now in the $itemList? Yes, none at all. This is because
array_diff
does not compare by reference, but by JSON representation of the internal state.Is this on purpose?
(The same issue exists with many other PaypalModels.)
The text was updated successfully, but these errors were encountered: