-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
get_class_methods($closure) doesn't return __invoke #17126
Comments
Interestingly the method is already visible to ReflectionClass, but is missing information for
|
php-src/Zend/zend_closures_arginfo.h Lines 33 to 40 in 0cc0c7c
vs php-src/ext/reflection/php_reflection.c Lines 4576 to 4590 in 0cc0c7c
So |
Description
The following code:
Resulted in this output:
But I expected this output instead:
__invoke does exist on Closures, it is documented too, see https://3v4l.org/VKjAF
From https://www.php.net/manual/en/class.closure.php
PHP Version
8.2
Operating System
No response
The text was updated successfully, but these errors were encountered: