diff options
author | Andrea Faulds <ajf@ajf.me> | 2016-01-28 18:01:48 +0000 |
---|---|---|
committer | Andrea Faulds <ajf@ajf.me> | 2016-01-28 18:01:48 +0000 |
commit | 8412de9da5304ca0ea287277c7e0d916e2c490be (patch) | |
tree | 2b3c4cc33c61a8bb41b1d99d3e71dd4c5e72625a /ext/reflection/php_reflection.c | |
parent | 86f54fcdf7b304395bd85ec003cc149699792617 (diff) | |
download | php-git-8412de9da5304ca0ea287277c7e0d916e2c490be.tar.gz |
Support void return type in reflection
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 461104f394..af1e972f60 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3029,6 +3029,7 @@ ZEND_METHOD(reflection_type, __toString) case _IS_BOOL: RETURN_STRINGL("bool", sizeof("bool") - 1); case IS_LONG: RETURN_STRINGL("int", sizeof("int") - 1); case IS_DOUBLE: RETURN_STRINGL("float", sizeof("float") - 1); + case IS_VOID: RETURN_STRINGL("void", sizeof("void") - 1); EMPTY_SWITCH_DEFAULT_CASE() } } |