Closed roberthenniger closed 3 years ago
Previously written calls should function identically between 3.7 and 3.8 because all added arguments have defaults configured and still accept the same arguments. (https://github.com/JouwWeb/sendcloud/compare/v3.7.0...v3.8.0)
@roberthenniger If your code broke between these releases that's definitely unintended behavior. Could you provide me with an example of code that breaks between these versions? I'll see if I can provide a fix to the library.
We were using ~3.4 in our composer (was too unspecific) and I am affraid I cant tell you which was our last working version. On my dev environment we use 3.4.x and it works fine. So I have to test the different versions and identify when it breaks.
It fails with the $shippingMethod must be an integer or ShippingMethod instance when requesting a label. exception. have to digg deeper
Did you by any change pass a string to $shippingMethodId of Client::createLabel()
? I believe PHP will juggle that to an integer if it has an int
type hint. Casting to (int) should be enough to fix that.
Closing due to lack of response.
Seems the signature of API function to create a parcel has changed. In my opinion this should not be included in a 3.8 release without a warning.