SPL: minor refactoring (#8341)

Use more appropriate types and return macros
This commit is contained in:
George Peter Banyard 2022-04-13 20:34:23 +01:00 committed by GitHub
parent 8233e06109
commit cfc38a6014
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 32 deletions

View file

@ -781,7 +781,7 @@ PHP_METHOD(SplFixedArray, offsetUnset)
PHP_METHOD(SplFixedArray, getIterator)
{
if (zend_parse_parameters_none() == FAILURE) {
return;
RETURN_THROWS();
}
zend_create_internal_iterator_zval(return_value, ZEND_THIS);