History log of /PHP-8.2/Zend/tests/anon_class_name.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 72bd5590 06-Feb-2020 Nikita Popov

Improve generated names for anonymous classes

In order of preference, the generated name will be:

new class extends ParentClass {};
// -> ParentClass@anonymous
n

Improve generated names for anonymous classes

In order of preference, the generated name will be:

new class extends ParentClass {};
// -> ParentClass@anonymous
new class implements FirstInterface, SecondInterface {};
// -> FirstInterface@anonymous
new class {};
// -> class@anonymous

This is intended to display a more useful class name in error messages
and stack traces, and thus make debugging easier.

Closes GH-5153.

show more ...