Fix bug #81200 ReflectionMethod::isStatic belongs on ReflectionFunctionAbstract

This commit is contained in:
Joe Watkins 2021-06-25 11:39:29 +02:00
parent 4957b7c02b
commit aad0d26816
No known key found for this signature in database
GPG key ID: F9BA0ADA31CBD89E
5 changed files with 47 additions and 16 deletions

View file

@ -3398,13 +3398,6 @@ ZEND_METHOD(ReflectionMethod, isProtected)
}
/* }}} */
/* {{{ Returns whether this method is static */
ZEND_METHOD(ReflectionMethod, isStatic)
{
_function_check_flag(INTERNAL_FUNCTION_PARAM_PASSTHRU, ZEND_ACC_STATIC);
}
/* }}} */
/* {{{ Returns whether this function is deprecated */
ZEND_METHOD(ReflectionFunctionAbstract, isDeprecated)
{
@ -3426,6 +3419,13 @@ ZEND_METHOD(ReflectionFunctionAbstract, isVariadic)
}
/* }}} */
/* {{{ Returns whether this function is static */
ZEND_METHOD(ReflectionFunctionAbstract, isStatic)
{
_function_check_flag(INTERNAL_FUNCTION_PARAM_PASSTHRU, ZEND_ACC_STATIC);
}
/* }}} */
/* {{{ Returns whether this function is defined in namespace */
ZEND_METHOD(ReflectionFunctionAbstract, inNamespace)
{