summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2011-06-05 08:59:24 +0000
committerStanislav Malyshev <stas@php.net>2011-06-05 08:59:24 +0000
commit2da7edbc8d58c78642d6f1fede4c5811fa8b5bc9 (patch)
treeb0877d4a062b47d687a18ab1d95ecab23282ebd8
parent5fac6a938fe368005beca48aee29917eecb8a0e2 (diff)
downloadphp-git-2da7edbc8d58c78642d6f1fede4c5811fa8b5bc9.tar.gz
This method doesn't seem to be very useful without scalar types, so reverting it too
-rw-r--r--ext/reflection/php_reflection.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 8eb7af24b5..1df797b664 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -2378,26 +2378,6 @@ ZEND_METHOD(reflection_parameter, isArray)
}
/* }}} */
-/* {{{ proto public string ReflectionParameter::getTypeHint()
- Returns what type hint is defined for this parameter */
-ZEND_METHOD(reflection_parameter, getTypeHint)
-{
- reflection_object *intern;
- parameter_reference *param;
-
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
- GET_REFLECTION_OBJECT_PTR(param);
-
- if (!param->arg_info->type_hint) {
- RETURN_FALSE;
- }
-
- RETURN_STRING(zend_get_type_by_const(param->arg_info->type_hint), 1);
-}
-/* }}} */
-
/* {{{ proto public bool ReflectionParameter::allowsNull()
Returns whether NULL is allowed as this parameters's value */
ZEND_METHOD(reflection_parameter, allowsNull)
@@ -5837,7 +5817,6 @@ static const zend_function_entry reflection_parameter_functions[] = {
ZEND_ME(reflection_parameter, getDeclaringClass, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, getClass, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, isArray, arginfo_reflection__void, 0)
- ZEND_ME(reflection_parameter, getTypeHint, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, allowsNull, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, getPosition, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, isOptional, arginfo_reflection__void, 0)