Making stdClass iterable

From: Date: Sat, 12 Jan 2019 19:39:18 +0000
Subject: Making stdClass iterable
Groups: php.internals 
Request: Send a blank email to internals+get-103718@lists.php.net to get a copy of this message
Hi everybody I'd like to propose a change to stdClass so that it can satisfy the iterable parameter/return type. Firstly I acknowledge that this isn't an ideal solution, but I think it gets us to a better state than we're in today. It shouldn't be necessary, but while we have such a common function (json_decode) returning stdClass we should make it easy/unsurprising to work with. https://wiki.php.net/rfc/iterable-stdclass Thanks, Craig

« previous php.internals (#103718) next »