@@ -1851,6 +1851,21 @@ ZEND_METHOD(reflection_function, getEndLine)
1851
1851
}
1852
1852
/* }}} */
1853
1853
1854
+ /* {{{ proto public bool ReflectionFunction::hasReturnHint()
1855
+ Checks for the presence of a return hint */
1856
+ ZEND_METHOD (reflection_function , hasReturnHint )
1857
+ {
1858
+ reflection_object * intern ;
1859
+ zend_function * fptr ;
1860
+
1861
+ if (zend_parse_parameters_none () == FAILURE ) {
1862
+ return ;
1863
+ }
1864
+ GET_REFLECTION_OBJECT_PTR (fptr );
1865
+ RETURN_BOOL (fptr -> common .return_hint .used );
1866
+ }
1867
+ /* }}} */
1868
+
1854
1869
/* {{{ proto public string ReflectionFunction::getDocComment()
1855
1870
Returns the doc comment for this function */
1856
1871
ZEND_METHOD (reflection_function , getDocComment )
@@ -5735,6 +5750,7 @@ static const zend_function_entry reflection_function_abstract_functions[] = {
5735
5750
ZEND_ME (reflection_function , isVariadic , arginfo_reflection__void , 0 )
5736
5751
ZEND_ME (reflection_function , getClosureThis , arginfo_reflection__void , 0 )
5737
5752
ZEND_ME (reflection_function , getClosureScopeClass , arginfo_reflection__void , 0 )
5753
+ ZEND_ME (reflection_function , hasReturnHint , arginfo_reflection__void , 0 )
5738
5754
ZEND_ME (reflection_function , getDocComment , arginfo_reflection__void , 0 )
5739
5755
ZEND_ME (reflection_function , getEndLine , arginfo_reflection__void , 0 )
5740
5756
ZEND_ME (reflection_function , getExtension , arginfo_reflection__void , 0 )
0 commit comments