billbeeio / billbee-php-sdk

🔌 The official Billbee API SDK for PHP 💻
MIT License
21 stars 25 forks source link

The PSR Http Message implementation may return NULL for getHeader() #66

Closed agoradesign closed 11 months ago

agoradesign commented 1 year ago

The docs for Psr\Http\Message\MessageInterface::getHeader() clearly say: "If the header does not appear in the message, this method MUST return an empty array."

The current implementation however may return NULL, which led to problems for me in our Drupal integration (causing PHP warnings)

devtronic commented 11 months ago

We don't implement the MessageInterface. Could you please provide a stack trace of the error?

agoradesign commented 11 months ago

sorry for the noise - I've mixed up the repos last year and seem to forgot to close this issue here -> see https://github.com/billbeeio/custom-shop-php-sdk/issues/12 for the correct issue