summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-10-21 16:13:09 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-10-22 11:26:02 +0200
commit530a8a38540e36a485f341d487529ade2b5d9c98 (patch)
treede5f307551d8c28159c0a63dac7ddcd3b0c8bfbd /UPGRADING
parent1faea28cdd3677e47a0951367571bf51866105fd (diff)
downloadphp-git-530a8a38540e36a485f341d487529ade2b5d9c98.tar.gz
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.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING5
1 files changed, 5 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index a0d31617c8..8b2bbfee46 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -241,6 +241,11 @@ PHP 8.0 UPGRADE NOTES
ReflectionFunction::invoke($arg = null, ...$args)
ReflectionMethod::invoke($object, $arg = null, ...$args)
+ . The ReflectionType::__toString() method will now return a complete debug
+ representation of the type, and is no longer deprecated. In particular the
+ result will include a nullability indicator for nullable types. The format
+ of the return value is not stable and may change between PHP versions.
+
- Socket:
. The deprecated AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES
flags for socket_addrinfo_lookup() have been removed.