Change `__debugInfo` return type
| From: | Gabriel Caruso | Date: | Wed, 17 Jun 2020 01:53:07 +0000 |
| Subject: | Change `__debugInfo` return type | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-110614@lists.php.net to get a copy of this message | ||
Hello, internals.
I'd like to discuss with you a minor change that I'd like to make to PHP
8.0: change the return type of
__debugInfo from ?array to
array.
The full context on how Máté found out that __debugInfo actually
returns an ?array (which btw is not even documented:
https://php.net/language.oop5.magic#object.debuginfo)
can be found in this
PR: https://github.com/php/php-src/pull/5496.
Do you agree with this change, or should I proceed with a small RFC?
-- Gabriel Caruso