mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add a few missing parameter types in stubs
Related to GH-5627
This commit is contained in:
parent
41de27ecc2
commit
0d330e1a02
35 changed files with 137 additions and 114 deletions
|
@ -3089,16 +3089,20 @@ ZEND_METHOD(ReflectionMethod, __toString)
|
|||
ZEND_METHOD(ReflectionMethod, getClosure)
|
||||
{
|
||||
reflection_object *intern;
|
||||
zval *obj;
|
||||
zval *obj = NULL;
|
||||
zend_function *mptr;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|o!", &obj) == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
GET_REFLECTION_OBJECT_PTR(mptr);
|
||||
|
||||
if (mptr->common.fn_flags & ZEND_ACC_STATIC) {
|
||||
zend_create_fake_closure(return_value, mptr, mptr->common.scope, mptr->common.scope, NULL);
|
||||
} else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "o", &obj) == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
if (!obj) {
|
||||
zend_argument_value_error(1, "cannot be null for non-static methods");
|
||||
}
|
||||
|
||||
if (!instanceof_function(Z_OBJCE_P(obj), mptr->common.scope)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue