From 5f25618f8362b3f6cf502d8dd7b3cef7e0313f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Thu, 30 Jul 2020 14:55:13 +0200 Subject: Add missing RETURN_THROWS() --- ext/reflection/php_reflection.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 1d6d6b7a8d..decb8d5e0a 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3103,6 +3103,7 @@ ZEND_METHOD(ReflectionMethod, getClosure) } else { if (!obj) { zend_argument_value_error(1, "cannot be null for non-static methods"); + RETURN_THROWS(); } if (!instanceof_function(Z_OBJCE_P(obj), mptr->common.scope)) { -- cgit v1.2.1