You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the latest version of the Podio-PHP client for the API, calling PodioGrant::getfor( 'item', $itemid ) causes the following error notice:
Notice: Array to string conversion in /var/www/api/Podio/lib/PodioObject.php on line 162
When examining the data returned by the call (see snippet below), we notice that user mails has has been cast from array to string, causing a string of "Array" to be returned.
Andreas has addressed the error with this commit, but I don't think this addresses the underlying issue. The mails data is multi-part, as the user can have multiple account emails. As such, I feel this data should be returned as an array. That would mean that whatever on the API-side that is reporting the mail array as a string should be fixed 👍
Using the latest version of the Podio-PHP client for the API, calling PodioGrant::getfor( 'item', $itemid ) causes the following error notice:
When examining the data returned by the call (see snippet below), we notice that user mails has has been cast from array to string, causing a string of "Array" to be returned.
This can be fixed temporarily by changing PodioObject.php[162] from
to
Clearly, this isn't an ideal solution, and I suspect may need to be addressed elsewhere instead.
The text was updated successfully, but these errors were encountered: