[php-src] Issue #7873: Adding __toString method to class defined below instantiation causes class to not be detected
| From: | pocallaghan | Date: | Tue, 04 Jan 2022 08:40:59 +0000 |
| Subject: | [php-src] Issue #7873: Adding __toString method to class defined below instantiation causes class to not be detected | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238747@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7873
Comment Author: pocallaghan
Hi @cmb69, I understand the complexities around early binding and I'm not too surprised at the
"won't fix" stance. That said, it does appear to be a BC breakage between PHP 7.x and
PHP 8.x but as best I can tell, there is no reference to early binding in the BC documentation. I
was therefore pretty confused when I ran into this issue whilst working on an advent of code
challenge, when I swapped computers. It feels like *something* needs updating, should I create a
ticket elsewhere for updating the documentation instead?