ardohr-ltd / starling-payments-objects

Starling Bank Payments Service data objects
4 stars 1 forks source link

Undefined variable: model #10

Closed judgej closed 6 years ago

judgej commented 6 years ago

ndefined variable: model {"exception":"[object] (ErrorException(code: 0): Undefined variable: model at /.../vendor/consilience/starling-payments-objects/src/HydratableTrait.php:275)

https://github.com/consilience/starling-payments-objects/blob/master/src/HydratableTrait.php#L275

Seems it's not handling a HTTP error correctly.

judgej commented 6 years ago

Fixed, and also added getErrors() to the HasErrorsTrait.