Skip to content

Commit a73a6be

Browse files
committed
Fix warning of no return in non-void function
1 parent 9fb5cfd commit a73a6be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_generators.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ static int zend_generator_iterator_get_key(zend_object_iterator *iterator, char
731731
/* Waiting for Etienne's patch to allow arbitrary zval keys. Until then
732732
* error out on non-int and non-string keys. */
733733
zend_error_noreturn(E_ERROR, "Currently only int and string keys can be yielded");
734+
return HASH_KEY_NON_EXISTANT; /* Nerver reached */
734735
}
735736
/* }}} */
736737

0 commit comments

Comments
 (0)