firstred / postnl-api-php

PostNL API PHP bindings
https://postnl-php.readthedocs.io
MIT License
26 stars 37 forks source link

Add Shipping default to Warning Entity #62

Closed BBrunekreeft closed 2 years ago

BBrunekreeft commented 2 years ago

This prevents Undefined array key "Shipping" in /vendor/firstred/postnl-api-php/src/Service/AbstractService.php:159 and solves #61

codecov[bot] commented 2 years ago

Codecov Report

Merging #62 (77a635c) into v1.3.x (acd2482) will not change coverage. The diff coverage is n/a.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/firstred/postnl-api-php/pull/62/graphs/tree.svg?width=650&height=150&src=pr&token=WdyfcT88x5&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker)](https://codecov.io/gh/firstred/postnl-api-php/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker) ```diff @@ Coverage Diff @@ ## v1.3.x #62 +/- ## ========================================= Coverage 57.62% 57.62% Complexity 2032 2032 ========================================= Files 114 114 Lines 5112 5112 ========================================= Hits 2946 2946 Misses 2166 2166 ``` | [Impacted Files](https://codecov.io/gh/firstred/postnl-api-php/pull/62?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker) | Coverage Δ | | |---|---|---| | [src/Entity/Response/SendShipmentResponse.php](https://codecov.io/gh/firstred/postnl-api-php/pull/62/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker#diff-c3JjL0VudGl0eS9SZXNwb25zZS9TZW5kU2hpcG1lbnRSZXNwb25zZS5waHA=) | `100.00% <ø> (ø)` | | | [src/Entity/Warning.php](https://codecov.io/gh/firstred/postnl-api-php/pull/62/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker#diff-c3JjL0VudGl0eS9XYXJuaW5nLnBocA==) | `100.00% <ø> (ø)` | | ------ [Continue to review full report at Codecov](https://codecov.io/gh/firstred/postnl-api-php/pull/62?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://codecov.io/gh/firstred/postnl-api-php/pull/62?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker). Last update [acd2482...77a635c](https://codecov.io/gh/firstred/postnl-api-php/pull/62?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Dekker).