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

I couldnt get to run any of the examples . #8

Closed
roottusk opened this issue May 6, 2018 · 7 comments
Closed

I couldnt get to run any of the examples . #8

roottusk opened this issue May 6, 2018 · 7 comments

Comments

@roottusk
Copy link

roottusk commented May 6, 2018

Fatal error: Uncaught TypeError: Return value of Instagram\SDK\DTO\Direct\ThreadItem::getUserId() must be of the type integer, float returned in C:\xampp\vendor\nicklasw\instagram-api\src\DTO\Direct\ThreadItem.php:77
Stack trace:
#0 C:\xampp\vendor\nicklasw\instagram-api\src\Responses\Serializers\Traits\OnPropagateDecodeEventTrait.php(199): Instagram\SDK\DTO\Direct\ThreadItem->getUserId()
#1 C:\xampp\vendor\nicklasw\instagram-api\src\Responses\Serializers\Traits\OnPropagateDecodeEventTrait.php(173): Instagram\SDK\DTO\Direct\Thread->getRequirementParameterValue(Object(Instagram\SDK\DTO\Direct\ThreadItem), 'userId')
#2 [internal function]: Instagram\SDK\DTO\Direct\Thread->Instagram\SDK\Responses\Serializers\Traits{closure}('userId')
#3 C:\xampp\vendor\nicklasw\instagram-api\src\Responses\Serializers\Traits\OnPropagateDecodeEventTrait.php(174): array_map(Object(Closure), Array)
#4 C:\xampp\vendor\nicklasw\instagram-api\src\Responses\Serializers\Traits\OnPropagateDecodeEventTrait.php(144): Instagram\SDK\DTO\Direct\Thread->ge in C:\xampp\vendor\nicklasw\instagram-api\src\DTO\Direct\ThreadItem.php on line 77

@roottusk
Copy link
Author

roottusk commented May 6, 2018

Thanks for the previous commit

@NicklasWallgren
Copy link
Owner

Right, are you running with strict_types enabled? Check out my latest commit.

Regards
Nicklas

@roottusk
Copy link
Author

roottusk commented May 7, 2018

No,I am not maybe.Do you have an IM handle something or Can I get your email?

@NicklasWallgren
Copy link
Owner

Did you try the latest commit? (the amended one).

You can reach me at nicklas.wallgren@gmail.com.

@roottusk
Copy link
Author

Yes I tried latest ..

@NicklasWallgren
Copy link
Owner

Well, you shouldn't get the same type of error with the latest commit. I have tried with two different accounts and It works fine.

@NicklasWallgren
Copy link
Owner

Closing this issue. Could not reproduce.

@uzleon uzleon mentioned this issue Aug 4, 2023
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

2 participants