-
Notifications
You must be signed in to change notification settings - Fork 31
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
null is not an instance of stdClass #7
Comments
I could do a fix as you say, but the problem would remain, it should not return null. |
No, I'm just calling the hook by myself so the input stream is empty. Anyways, the function should not panic. What would be the value of |
The return value of getUpdate could simply be a null, what do you think about it? |
Yeah, think so too. That's why I created a pull request. |
Client->getUpdate()
could return null throughjson_decode
which leads to this fatal error:PHP version: 7.3.13
Possible solution: Add nullable or remove type hint
The text was updated successfully, but these errors were encountered: