diff options
author | Sara Golemon <pollita@php.net> | 2017-05-31 11:44:53 -0700 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2017-05-31 12:08:07 -0700 |
commit | c1500f8519aded29c3632de4240fbc0a4e485a81 (patch) | |
tree | a2655ffeca48b3c58645b9af4e40b5c9418646fc /ext/reflection/php_reflection.c | |
parent | fc1ae1d1d3b1752c581e258fd3fcc3a184631baa (diff) | |
download | php-git-c1500f8519aded29c3632de4240fbc0a4e485a81.tar.gz |
Rename ReflectionClass::isIterateable() to isIterable()
Iterateable is not a word.
Add the correct spelling, but keep the original one around
for BC purposes.
Perhaps we can add ZEND_ACC_DEPRECATED at some later date
and even remove it from PHP 8.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 3e5af0dbb8..84f4d66aeb 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -5117,9 +5117,9 @@ ZEND_METHOD(reflection_class, implementsInterface) } /* }}} */ -/* {{{ proto public bool ReflectionClass::isIterateable() - Returns whether this class is iterateable (can be used inside foreach) */ -ZEND_METHOD(reflection_class, isIterateable) +/* {{{ proto public bool ReflectionClass::isIterable() + Returns whether this class is iterable (can be used inside foreach) */ +ZEND_METHOD(reflection_class, isIterable) { reflection_object *intern; zend_class_entry *ce; @@ -6465,7 +6465,8 @@ static const zend_function_entry reflection_class_functions[] = { ZEND_ME(reflection_class, getStaticPropertyValue, arginfo_reflection_class_getStaticPropertyValue, 0) ZEND_ME(reflection_class, setStaticPropertyValue, arginfo_reflection_class_setStaticPropertyValue, 0) ZEND_ME(reflection_class, getDefaultProperties, arginfo_reflection__void, 0) - ZEND_ME(reflection_class, isIterateable, arginfo_reflection__void, 0) + ZEND_ME(reflection_class, isIterable, arginfo_reflection__void, 0) + ZEND_MALIAS(reflection_class, isIterateable, isIterable, arginfo_reflection__void, 0) ZEND_ME(reflection_class, implementsInterface, arginfo_reflection_class_implementsInterface, 0) ZEND_ME(reflection_class, getExtension, arginfo_reflection__void, 0) ZEND_ME(reflection_class, getExtensionName, arginfo_reflection__void, 0) |