Declare tentative return types for Zend (#7251) Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
Fix RecursiveIteratorIterator segfault for invalid aggregate The code was assuming that the returned value is an object. Reuse the logic from IteratorIterator.