@@ -2817,22 +2817,6 @@ ZEND_METHOD(reflection_type, allowsNull)
2817
2817
}
2818
2818
/* }}} */
2819
2819
2820
- /* {{{ proto public bool ReflectionType::isBuiltin()
2821
- Returns whether parameter is a builtin type */
2822
- ZEND_METHOD (reflection_type , isBuiltin )
2823
- {
2824
- reflection_object * intern ;
2825
- type_reference * param ;
2826
-
2827
- if (zend_parse_parameters_none () == FAILURE ) {
2828
- return ;
2829
- }
2830
- GET_REFLECTION_OBJECT_PTR (param );
2831
-
2832
- RETVAL_BOOL (ZEND_TYPE_IS_CODE (param -> type ));
2833
- }
2834
- /* }}} */
2835
-
2836
2820
/* {{{ reflection_type_name */
2837
2821
static zend_string * reflection_type_name (type_reference * param ) {
2838
2822
if (ZEND_TYPE_IS_NAME (param -> type )) {
@@ -2863,7 +2847,7 @@ ZEND_METHOD(reflection_type, __toString)
2863
2847
/* }}} */
2864
2848
2865
2849
/* {{{ proto public string ReflectionNamedType::getName()
2866
- Return the text of the type hint */
2850
+ Return the name of the type */
2867
2851
ZEND_METHOD (reflection_named_type , getName )
2868
2852
{
2869
2853
reflection_object * intern ;
@@ -2878,6 +2862,22 @@ ZEND_METHOD(reflection_named_type, getName)
2878
2862
}
2879
2863
/* }}} */
2880
2864
2865
+ /* {{{ proto public bool ReflectionNamedType::isBuiltin()
2866
+ Returns whether type is a builtin type */
2867
+ ZEND_METHOD (reflection_named_type , isBuiltin )
2868
+ {
2869
+ reflection_object * intern ;
2870
+ type_reference * param ;
2871
+
2872
+ if (zend_parse_parameters_none () == FAILURE ) {
2873
+ return ;
2874
+ }
2875
+ GET_REFLECTION_OBJECT_PTR (param );
2876
+
2877
+ RETVAL_BOOL (ZEND_TYPE_IS_CODE (param -> type ));
2878
+ }
2879
+ /* }}} */
2880
+
2881
2881
/* {{{ proto public static mixed ReflectionMethod::export(mixed class, string name [, bool return]) throws ReflectionException
2882
2882
Exports a reflection object. Returns the output if TRUE is specified for return, printing it otherwise. */
2883
2883
ZEND_METHOD (reflection_method , export )
@@ -6645,13 +6645,13 @@ static const zend_function_entry reflection_parameter_functions[] = {
6645
6645
static const zend_function_entry reflection_type_functions [] = {
6646
6646
ZEND_ME (reflection , __clone , arginfo_reflection__void , ZEND_ACC_PRIVATE |ZEND_ACC_FINAL )
6647
6647
ZEND_ME (reflection_type , allowsNull , arginfo_reflection__void , 0 )
6648
- ZEND_ME (reflection_type , isBuiltin , arginfo_reflection__void , 0 )
6649
6648
ZEND_ME (reflection_type , __toString , arginfo_reflection__void , ZEND_ACC_DEPRECATED )
6650
6649
PHP_FE_END
6651
6650
};
6652
6651
6653
6652
static const zend_function_entry reflection_named_type_functions [] = {
6654
6653
ZEND_ME (reflection_named_type , getName , arginfo_reflection__void , 0 )
6654
+ ZEND_ME (reflection_named_type , isBuiltin , arginfo_reflection__void , 0 )
6655
6655
PHP_FE_END
6656
6656
};
6657
6657
0 commit comments