Skip to content

Commit

Permalink
Add missing RETURN_THROWS()
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Jul 30, 2020
1 parent 0d330e1 commit 5f25618
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/reflection/php_reflection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5f25618

Please sign in to comment.