Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Cannot use object of type stdClass as array in UserProfilePhotosNormalizer.php #18

Closed
greenplugin opened this issue Jan 30, 2020 · 1 comment

Comments

@greenplugin
Copy link
Member

Detailed description

BotApiInterface::getUserProfilePhotos(GetUserProfilePhotosMethod::create($id));

was throw this error:

Uncaught Error: Cannot use object of type stdClass as array

In UserProfilePhotosNormalizer.php line 54:

Cannot use object of type stdClass as array

Please replace line 54 of UserProfilePhotosNormalizer to $data->photos = $serializer->denormalize($data->photos, PhotoSizeType::class . '[][]');

@greenplugin
Copy link
Member Author

fixed in #19 pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant