Skip to content

Commit 5f25618

Browse files
committed
Add missing RETURN_THROWS()
1 parent 0d330e1 commit 5f25618

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/reflection/php_reflection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3103,6 +3103,7 @@ ZEND_METHOD(ReflectionMethod, getClosure)
31033103
} else {
31043104
if (!obj) {
31053105
zend_argument_value_error(1, "cannot be null for non-static methods");
3106+
RETURN_THROWS();
31063107
}
31073108

31083109
if (!instanceof_function(Z_OBJCE_P(obj), mptr->common.scope)) {

0 commit comments

Comments
 (0)