]> granicus.if.org Git - php/commit
Fix and undeprecate ReflectionType::__toString()
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 21 Oct 2019 14:13:09 +0000 (16:13 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 22 Oct 2019 09:26:02 +0000 (11:26 +0200)
commit530a8a38540e36a485f341d487529ade2b5d9c98
treede5f307551d8c28159c0a63dac7ddcd3b0c8bfbd
parent1faea28cdd3677e47a0951367571bf51866105fd
Fix and undeprecate ReflectionType::__toString()

Add deprecated _ZendTestClass::__toString() method to preserve
an existing test.

ReflectionType::__toString() will now return a complete
representation of the type, as it should have originally. Users
that relied on nullability being absent should have been pushed
to ReflectionNamedType::getName() by the deprecation of
ReflectionType::__toString() in PHP 7.1 / PHP 7.4.
UPGRADING
Zend/tests/bug78239.phpt
ext/reflection/php_reflection.c
ext/reflection/tests/ReflectionNamedType.phpt
ext/reflection/tests/bug72661.phpt
ext/zend_test/test.c