summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-01-01 14:23:21 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-01-01 14:23:21 +0100
commit9099dbd9614b37b48818ac24e2020b0d756b7e1e (patch)
tree5bd37e9e2bf937d3a8e480ff40a1c2063922d4a6 /ext/reflection/php_reflection.c
parent12ce73a5bb5554f45950b6bcf85100f0b2db960e (diff)
downloadphp-git-9099dbd9614b37b48818ac24e2020b0d756b7e1e.tar.gz
Use RETURN_THROWS() after zend_type_error()
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 957a866177..61a0de16d6 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -6260,7 +6260,7 @@ ZEND_METHOD(reflection_reference, fromArrayElement)
item = zend_symtable_find(ht, Z_STR_P(key));
} else {
zend_type_error("Key must be array or string");
- return;
+ RETURN_THROWS();
}
if (!item) {