-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
ReflectionClass::getStaticProperties doesn't need null return type #10259
Comments
You can edit the stub file (*) Assuming you already ran |
No need to run |
I could be wrong, but looks like ReflectionFunctionAbstract::getClosureScopeClass() and getClosureThis() no longer return null also. This issue was assigned to someone, so I'm not working on a PR. |
Thanks for the report! Your initial claim is true, However, |
Description
The following code:
Resulted in this output:
But I expected this output instead:
Looks like the return paths were changed to RETURN_THROWS() in 8664ff7 and 8176059 but the stub wasn't updated.
Usually, after these cleanups, the stub is correct but the docs are outdated, however this seems to be the wrong stub.
I'm not sure how to update the stub and generated code from it.
PHP Version
8.1.14
Operating System
No response
The text was updated successfully, but these errors were encountered: