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
There is a TypeError when using API->Station($station_id)->streamers()->list()
"Fatal error: Uncaught TypeError: Argument 3 passed to AzuraCast\Api\Dto\StreamerDto::__construct() must be of the type string, null given,"
This is as the AzuraCast API can return empty values for the password and comment (but the response could is still valid) when requested and as such it brings up a TypeError.
I have temporarily fixed this for myself by removing Password & Comment in the fromArray function in Dto\StreamerDto.php and instead replacing it with an empty string (my application doesn't need these urgently) and the errors are resolved but this is obviously not the proper way to fix it.
Update - Fixed it properly and made a PR ready for review.
The text was updated successfully, but these errors were encountered:
There is a TypeError when using API->Station($station_id)->streamers()->list()
"Fatal error: Uncaught TypeError: Argument 3 passed to AzuraCast\Api\Dto\StreamerDto::__construct() must be of the type string, null given,"
This is as the AzuraCast API can return empty values for the password and comment (but the response could is still valid) when requested and as such it brings up a TypeError.
I have temporarily fixed this for myself by removing Password & Comment in the fromArray function in Dto\StreamerDto.php and instead replacing it with an empty string (my application doesn't need these urgently) and the errors are resolved but this is obviously not the proper way to fix it.
Update - Fixed it properly and made a PR ready for review.
The text was updated successfully, but these errors were encountered: