pay-now / paynow-php-sdk

PHP Library for Paynow API
https://docs.paynow.pl
MIT License
15 stars 10 forks source link

fix: remove unnecessary errors assignment #19

Closed jacekkarczmarczyk closed 4 years ago

jacekkarczmarczyk commented 4 years ago

Setting $this->errors[] = ... and the reassigning it ($this->errors = $json->errors) doesn't make any sense

jacekkarczmarczyk commented 4 years ago

Decided to use the result of json_decode, otherwise it would be a breaking change, not worth it