php-rest-api icon indicating copy to clipboard operation
php-rest-api copied to clipboard

Properties are documented and instantiated as array, turn out to be objects of type stdClass

Open dwilmer-karify opened this issue 5 years ago • 1 comments

There are several properties that are documented and initialized as an array, but turn out to be objects of type stdClass (as indicated by the error Error : Cannot use object of type stdClass as array when trying isset($message->typeDetails['udh'])). Where I found this so far:

  • \MessageBird\Model\Message::typeDetails
  • \MessageBird\Model\Hlr::details

dwilmer-karify avatar Mar 26 '19 15:03 dwilmer-karify

#182 should partially solve the issue. We still need to improve the typings.

CoolGoose avatar Mar 04 '22 07:03 CoolGoose

Closing this due to inactivity.

dennisvdvliet avatar Jan 13 '23 07:01 dennisvdvliet