Add a few missing parameter types in stubs

Related to GH-5627
This commit is contained in:
Máté Kocsis 2020-07-28 23:00:44 +02:00
parent 41de27ecc2
commit 0d330e1a02
No known key found for this signature in database
GPG key ID: FD055E41728BF310
35 changed files with 137 additions and 114 deletions

View file

@ -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)) {