[php-src] Issue #7873: Adding __toString method to class defined below instantiation causes class to not be detected

From: Date: Tue, 04 Jan 2022 14:27:24 +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-238760@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7873 Comment Author: Geompse It is worth adding that even using autoloading you can't use a class in a way that could make sense: ``` class A extends B { } class B { public function __toString() : string { return ''; } } ``` Fatal error: Uncaught Error: Class "B" not found in line:1

« previous php.bugs (#238760) next »